Home
last modified time | relevance | path

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

/external/openssh/
Dbitmap.c28 #define BITMAP_BITS (sizeof(BITMAP_WTYPE) * 8) macro
29 #define BITMAP_WMASK ((BITMAP_WTYPE)BITMAP_BITS - 1)
74 if (b->len == 0 || (n / BITMAP_BITS) > b->top) in bitmap_test_bit()
76 return (b->d[n / BITMAP_BITS] >> (n & BITMAP_WMASK)) & 1; in bitmap_test_bit()
87 nlen = (n / BITMAP_BITS) + 1; in reserve()
106 offset = n / BITMAP_BITS; in bitmap_set_bit()
130 offset = n / BITMAP_BITS; in bitmap_clear_bit()
151 bits = (b->top + 1) * BITMAP_BITS; in bitmap_nbits()
152 while (!(w & ((BITMAP_WTYPE)1 << (BITMAP_BITS - 1)))) { in bitmap_nbits()
206 shift = BITMAP_BITS - 8; in bitmap_from_string()