Lines Matching refs:_BITSTR_BITS
78 #define _BITSTR_BITS (sizeof(bitstr_t) * 8) macro
90 return (_bit / _BITSTR_BITS); in _bit_idx()
97 return (_bit % _BITSTR_BITS); in _bit_offset()
111 (_BITSTR_MASK >> (_BITSTR_BITS - _bit_offset(_stop) - 1))); in _bit_make_mask()
116 #define bitstr_size(_nbits) (_bit_roundup2(_nbits, _BITSTR_BITS) / 8)
170 *_bitstr |= _bit_make_mask(_start, _BITSTR_BITS - 1); in bit_nset()
189 *_bitstr &= ~_bit_make_mask(_start, _BITSTR_BITS - 1); in bit_nclear()
216 _test &= _bit_make_mask(_start, _BITSTR_BITS - 1); in bit_ffs_at()
221 _value = ((_curbitstr - _bitstr) * _BITSTR_BITS) + _offset - 1; in bit_ffs_at()
255 _value = ((_curbitstr - _bitstr) * _BITSTR_BITS) + _offset - 1; in bit_ffc_at()
298 for (_offset = 0;; _offset -= _BITSTR_BITS, _test = ~*++_curbitstr) { in bit_ffs_area_at()
301 if (_offset + _size < (int)_BITSTR_BITS && in bit_ffs_area_at()
309 _offset = (~_test == 0) ? (int)_BITSTR_BITS : in bit_ffs_area_at()
311 _value = (_curbitstr - _bitstr) * _BITSTR_BITS + in bit_ffs_area_at()
319 if (_offset + _size <= (int)_BITSTR_BITS) in bit_ffs_area_at()
345 for (_offset = 0;; _offset -= _BITSTR_BITS, _test = *++_curbitstr) { in bit_ffc_area_at()
348 if (_offset + _size < (int)_BITSTR_BITS && in bit_ffc_area_at()
356 _offset = (~_test == 0) ? (int)_BITSTR_BITS : in bit_ffc_area_at()
358 _value = (_curbitstr - _bitstr) * _BITSTR_BITS + in bit_ffc_area_at()
366 if (_offset + _size <= (int)_BITSTR_BITS) in bit_ffc_area_at()
397 _nbits -= _BITSTR_BITS * _bit_idx(_start); in bit_count()
398 _start -= _BITSTR_BITS * _bit_idx(_start); in bit_count()
401 curbitstr_len = (int)_BITSTR_BITS < _nbits ? in bit_count()
402 (int)_BITSTR_BITS : _nbits; in bit_count()
406 _nbits -= _BITSTR_BITS; in bit_count()
408 while (_nbits >= (int)_BITSTR_BITS) { in bit_count()
411 _nbits -= _BITSTR_BITS; in bit_count()