GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
bitmap.h File Reference

Bitmap used for viewing densemat cols/rows in the leading dimension. More...

#include "config.h"
#include "types.h"
#include "error.h"
#include <hwloc/bitmap.h>
#include <hwloc.h>
Include dependency graph for bitmap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ghost_bitmap_set(bitmap, idx)   hwloc_bitmap_set(bitmap,idx)
 
#define ghost_bitmap_set_range(bitmap, start, end)   hwloc_bitmap_set_range(bitmap,start,end)
 
#define ghost_bitmap_clr_range(bitmap, start, end)   hwloc_bitmap_clr_range(bitmap,start,end)
 
#define ghost_bitmap_list_asprintf(str, bitmap)   hwloc_bitmap_list_asprintf(str,bitmap)
 
#define ghost_bitmap_copy(dst, src)   hwloc_bitmap_copy(dst,src)
 
#define ghost_bitmap_clr(bitmap, idx)   hwloc_bitmap_clr(bitmap,idx)
 
#define ghost_bitmap_first(bitmap)   hwloc_bitmap_first(bitmap)
 
#define ghost_bitmap_next(bitmap, idx)   hwloc_bitmap_next(bitmap,idx)
 
#define ghost_bitmap_alloc(bitmap)   hwloc_bitmap_alloc(bitmap)
 
#define ghost_bitmap_free(bitmap)   hwloc_bitmap_free(bitmap)
 
#define ghost_bitmap_isset(bitmap, idx)   hwloc_bitmap_isset(bitmap,idx)
 
#define ghost_bitmap_iszero(bitmap)   hwloc_bitmap_iszero(bitmap)
 
#define ghost_bitmap_isequal(bitmap1, bitmap2)   hwloc_bitmap_isequal(bitmap1,bitmap2)
 
#define ghost_bitmap_last(bitmap)   hwloc_bitmap_last(bitmap)
 
#define ghost_bitmap_weight(bitmap)   hwloc_bitmap_weight(bitmap)
 
#define ghost_bitmap_iscompact(bitmap)   ((ghost_bitmap_last(bitmap)-ghost_bitmap_first(bitmap)+1) == ghost_bitmap_weight(bitmap))
 

Typedefs

typedef hwloc_bitmap_t ghost_bitmap
 ghost_bitmap is just an alias for hwloc_bitmap_t More...
 

Functions

ghost_error ghost_bitmap_copy_indices (ghost_bitmap dst, ghost_lidx *offset, ghost_bitmap src, ghost_lidx *idx, ghost_lidx nidx)
 

Detailed Description

Bitmap used for viewing densemat cols/rows in the leading dimension.

Author
Moritz Kreutzer morit.nosp@m.z.kr.nosp@m.eutze.nosp@m.r@fa.nosp@m.u.de

Macro Definition Documentation

#define ghost_bitmap_alloc (   bitmap)    hwloc_bitmap_alloc(bitmap)
#define ghost_bitmap_clr (   bitmap,
  idx 
)    hwloc_bitmap_clr(bitmap,idx)
#define ghost_bitmap_clr_range (   bitmap,
  start,
  end 
)    hwloc_bitmap_clr_range(bitmap,start,end)
#define ghost_bitmap_copy (   dst,
  src 
)    hwloc_bitmap_copy(dst,src)
#define ghost_bitmap_first (   bitmap)    hwloc_bitmap_first(bitmap)
#define ghost_bitmap_free (   bitmap)    hwloc_bitmap_free(bitmap)
#define ghost_bitmap_iscompact (   bitmap)    ((ghost_bitmap_last(bitmap)-ghost_bitmap_first(bitmap)+1) == ghost_bitmap_weight(bitmap))
#define ghost_bitmap_isequal (   bitmap1,
  bitmap2 
)    hwloc_bitmap_isequal(bitmap1,bitmap2)
#define ghost_bitmap_isset (   bitmap,
  idx 
)    hwloc_bitmap_isset(bitmap,idx)
#define ghost_bitmap_iszero (   bitmap)    hwloc_bitmap_iszero(bitmap)
#define ghost_bitmap_last (   bitmap)    hwloc_bitmap_last(bitmap)
#define ghost_bitmap_list_asprintf (   str,
  bitmap 
)    hwloc_bitmap_list_asprintf(str,bitmap)
#define ghost_bitmap_next (   bitmap,
  idx 
)    hwloc_bitmap_next(bitmap,idx)
#define ghost_bitmap_set (   bitmap,
  idx 
)    hwloc_bitmap_set(bitmap,idx)
#define ghost_bitmap_set_range (   bitmap,
  start,
  end 
)    hwloc_bitmap_set_range(bitmap,start,end)
#define ghost_bitmap_weight (   bitmap)    hwloc_bitmap_weight(bitmap)

Typedef Documentation

typedef hwloc_bitmap_t ghost_bitmap

ghost_bitmap is just an alias for hwloc_bitmap_t

Function Documentation

ghost_error ghost_bitmap_copy_indices ( ghost_bitmap  dst,
ghost_lidx offset,
ghost_bitmap  src,
ghost_lidx idx,
ghost_lidx  nidx 
)