]> git.ozlabs.org Git - ccan/blobdiff - ccan/bitmap/bitmap.h
bitmap: Fix some bugs on 32-bit platforms
[ccan] / ccan / bitmap / bitmap.h
index 9e6c2bbc51912d797eec56000963756598d48592..beeb1e953cab473aaa0bcd70cb6755842629a988 100644 (file)
@@ -15,6 +15,9 @@ 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.
  */