]> git.ozlabs.org Git - ccan/blobdiff - ccan/alloc/bitops.h
alloc: first cut of tiny allocator (down to 2 bytes!)
[ccan] / ccan / alloc / bitops.h
diff --git a/ccan/alloc/bitops.h b/ccan/alloc/bitops.h
new file mode 100644 (file)
index 0000000..11ec950
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef CCAN_ALLOC_BITOPS_H
+#define CCAN_ALLOC_BITOPS_H
+unsigned int fls(unsigned long val);
+unsigned int ffsl(unsigned long val);
+unsigned int popcount(unsigned long val);
+unsigned long align_up(unsigned long x, unsigned long align);
+#endif /* CCAN_ALLOC_BITOPS_H */