X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Falloc%2Fbitops.h;fp=ccan%2Falloc%2Fbitops.h;h=11ec950eff9df92e7bcaed8c09d70bce417b83b0;hp=0000000000000000000000000000000000000000;hb=7f9d956574d30f70d2260f4b7694f481e3765173;hpb=d707abbb2ff707dd34aa77c9028f23f2266f8d5f diff --git a/ccan/alloc/bitops.h b/ccan/alloc/bitops.h new file mode 100644 index 00000000..11ec950e --- /dev/null +++ b/ccan/alloc/bitops.h @@ -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 */