]> git.ozlabs.org Git - ccan/blobdiff - ccan/bitmap/bitmap.h
xtea: new module.
[ccan] / ccan / bitmap / bitmap.h
index 9e6c2bbc51912d797eec56000963756598d48592..543828010188aa39490005ebe53dcaba3b52c1a5 100644 (file)
@@ -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;