]> git.ozlabs.org Git - ccan/blob - ccan/alloc/bitops.h
tdb: combine dead_space helper from summary.c and check.c
[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 */