Lines Matching refs:pos

35 	size_t pos = bit & 7;  in are_bits_clear()  local
38 if (pos) { in are_bits_clear()
39 if (8 - pos >= nbits) in are_bits_clear()
40 return !nbits || !(*map & fill_mask[pos + nbits] & in are_bits_clear()
41 zero_mask[pos]); in are_bits_clear()
43 if (*map++ & zero_mask[pos]) in are_bits_clear()
45 nbits -= 8 - pos; in are_bits_clear()
48 pos = ((size_t)map) & (sizeof(size_t) - 1); in are_bits_clear()
49 if (pos) { in are_bits_clear()
50 pos = sizeof(size_t) - pos; in are_bits_clear()
51 if (nbits >= pos * 8) { in are_bits_clear()
52 for (nbits -= pos * 8; pos; pos--, map++) { in are_bits_clear()
59 for (pos = nbits / BITS_IN_SIZE_T; pos; pos--, map += sizeof(size_t)) { in are_bits_clear()
64 for (pos = (nbits % BITS_IN_SIZE_T) >> 3; pos; pos--, map++) { in are_bits_clear()
69 pos = nbits & 7; in are_bits_clear()
70 if (pos && (*map & fill_mask[pos])) in are_bits_clear()
84 size_t pos = bit & 7; in are_bits_set() local
87 if (pos) { in are_bits_set()
88 if (8 - pos >= nbits) { in are_bits_set()
89 mask = fill_mask[pos + nbits] & zero_mask[pos]; in are_bits_set()
93 mask = zero_mask[pos]; in are_bits_set()
96 nbits -= 8 - pos; in are_bits_set()
99 pos = ((size_t)map) & (sizeof(size_t) - 1); in are_bits_set()
100 if (pos) { in are_bits_set()
101 pos = sizeof(size_t) - pos; in are_bits_set()
102 if (nbits >= pos * 8) { in are_bits_set()
103 for (nbits -= pos * 8; pos; pos--, map++) { in are_bits_set()
110 for (pos = nbits / BITS_IN_SIZE_T; pos; pos--, map += sizeof(size_t)) { in are_bits_set()
115 for (pos = (nbits % BITS_IN_SIZE_T) >> 3; pos; pos--, map++) { in are_bits_set()
120 pos = nbits & 7; in are_bits_set()
121 if (pos) { in are_bits_set()
122 mask = fill_mask[pos]; in are_bits_set()