alloc: first cut of tiny allocator (down to 2 bytes!)
[ccan] / ccan / alloc / bitops.h
1 #ifndef CCAN_ALLOC_BITOPS_H
2 #define CCAN_ALLOC_BITOPS_H
3 unsigned int fls(unsigned long val);
4 unsigned int ffsl(unsigned long val);
5 unsigned int popcount(unsigned long val);
6 unsigned long align_up(unsigned long x, unsigned long align);
7 #endif /* CCAN_ALLOC_BITOPS_H */