X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fbitmap%2Fbitmap.h;h=543828010188aa39490005ebe53dcaba3b52c1a5;hb=e5fb923ba3735c758ef795eb69d5ee1c6f0a94e9;hp=9e6c2bbc51912d797eec56000963756598d48592;hpb=c38e11b508e52fb2921e67d1123b05d9bef90fd2;p=ccan diff --git a/ccan/bitmap/bitmap.h b/ccan/bitmap/bitmap.h index 9e6c2bbc..54382801 100644 --- a/ccan/bitmap/bitmap.h +++ b/ccan/bitmap/bitmap.h @@ -15,10 +15,13 @@ typedef unsigned long bitmap_word; #define BITMAP_NWORDS(_n) \ (((_n) + BITMAP_WORD_BITS - 1) / BITMAP_WORD_BITS) +#define BITMAP_WORD_0 (0) +#define BITMAP_WORD_1 ((bitmap_word)-1UL) + /* * We wrap each word in a structure for type checking. */ -typedef struct { +typedef struct bitmap { bitmap_word w; } bitmap;