Update btree usage of 64 bitstring implementation, so it's cleaner.

This commit is contained in:
Alex Gorrod
2012-08-27 12:14:30 +10:00
parent 58cdd2caec
commit 1ce266043c
3 changed files with 7 additions and 14 deletions

View File

@@ -65,15 +65,8 @@
/* mask for the bit within its byte */
#define __bit_mask(bit) (1 << ((bit) & 0x7))
/*
* __bitstr_size --
* Return the bytes in a bitstring of nbits.
*/
static inline uint64_t
__bitstr_size(uint64_t nbits)
{
return (((nbits) + 7) >> 3);
}
/* Bytes in a bitstring of nbits */
#define __bitstr_size(nbits) (((nbits) + 7) >> 3)
/*
* __bit_alloc --