Searched refs:_BITSTR_BITS (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/sys/ |
H A D | bitstring.h | 76 #define _BITSTR_BITS (sizeof(bitstr_t) * 8) macro 86 return (_bit / _BITSTR_BITS); in _bit_idx() 93 return (_bit % _BITSTR_BITS); in _bit_offset() 107 (_BITSTR_MASK >> (_BITSTR_BITS - _bit_offset(_stop) - 1))); in _bit_make_mask() 112 #define bitstr_size(_nbits) (_bit_roundup2((_nbits), _BITSTR_BITS) / 8) 170 _bit_make_mask(_start, _BITSTR_BITS - 1))) in bit_ntest() 172 if (_bit_offset(_stop) == _BITSTR_BITS - 1) in bit_ntest() 178 return (_bit_offset(_stop) == _BITSTR_BITS - 1 || in bit_ntest() 195 *_bitstr++ |= _bit_make_mask(_start, _BITSTR_BITS - 1); in bit_nset() 196 if (_bit_offset(_stop) == _BITSTR_BITS - 1) in bit_nset() [all …]
|
/freebsd/tests/sys/sys/ |
H A D | bitstring_test.c | 64 _BITSTR_BITS - 1, in bitstring_test_runner() 65 _BITSTR_BITS, in bitstring_test_runner() 66 _BITSTR_BITS + 1, in bitstring_test_runner() 67 2 * _BITSTR_BITS - 1, in bitstring_test_runner() 68 2 * _BITSTR_BITS, in bitstring_test_runner() 331 if (nbits % _BITSTR_BITS != 0) in BITSTRING_TC_DEFINE() 332 bit_nset(bitstr, nbits, roundup2(nbits, _BITSTR_BITS) - 1); in BITSTRING_TC_DEFINE() 345 if (nbits % _BITSTR_BITS != 0) in BITSTRING_TC_DEFINE() 346 bit_nclear(bitstr, nbits, roundup2(nbits, _BITSTR_BITS) - 1); in BITSTRING_TC_DEFINE() 365 if (nbits % _BITSTR_BITS != 0) in BITSTRING_TC_DEFINE() [all …]
|