Home
last modified time | relevance | path

Searched refs:BITMAP_BITS (Results 1 – 1 of 1) sorted by relevance

/freebsd/crypto/openssh/
H A Dbitmap.c29 #define BITMAP_BITS (sizeof(BITMAP_WTYPE) * 8) macro
30 #define BITMAP_WMASK ((BITMAP_WTYPE)BITMAP_BITS - 1)
76 if (b->len == 0 || (n / BITMAP_BITS) > b->top) in bitmap_test_bit()
78 return (b->d[n / BITMAP_BITS] >> (n & BITMAP_WMASK)) & 1; in bitmap_test_bit()
89 nlen = (n / BITMAP_BITS) + 1; in reserve()
108 offset = n / BITMAP_BITS; in bitmap_set_bit()
132 offset = n / BITMAP_BITS; in bitmap_clear_bit()
153 bits = (b->top + 1) * BITMAP_BITS; in bitmap_nbits()
154 while (!(w & ((BITMAP_WTYPE)1 << (BITMAP_BITS - 1)))) { in bitmap_nbits()
208 shift = BITMAP_BITS - 8; in bitmap_from_string()