13 #ifndef HWLOC_BITMAP_H
14 #define HWLOC_BITMAP_H
16 #include <hwloc/autogen/config.h>
265 #define hwloc_bitmap_foreach_begin(id, bitmap) \
267 assert(hwloc_bitmap_weight(bitmap) != -1); \
268 for (id = hwloc_bitmap_first(bitmap); \
269 (unsigned) id != (unsigned) -1; \
270 id = hwloc_bitmap_next(bitmap, id)) { \
275 #define hwloc_bitmap_foreach_end() \
285 void hwloc_bitmap_or (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2);
288 void hwloc_bitmap_and (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2);
291 void hwloc_bitmap_andnot (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2);
294 void hwloc_bitmap_xor (hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2);