Clear bits start ... stop inclusive in bit string. */
| 176 | |
| 177 | /* Clear bits start ... stop inclusive in bit string. */ |
| 178 | static inline void |
| 179 | bit_nclear(bitstr_t *_bitstr, int _start, int _stop) |
| 180 | { |
| 181 | bitstr_t *_stopbitstr; |
| 182 | |
| 183 | _stopbitstr = _bitstr + _bit_idx(_stop); |
| 184 | _bitstr += _bit_idx(_start); |
| 185 | |
| 186 | if (_bitstr == _stopbitstr) { |
| 187 | *_bitstr &= ~_bit_make_mask(_start, _stop); |
| 188 | } else { |
| 189 | *_bitstr &= ~_bit_make_mask(_start, _BITSTR_BITS - 1); |
| 190 | while (++_bitstr < _stopbitstr) |
| 191 | *_bitstr = 0; |
| 192 | *_stopbitstr &= ~_bit_make_mask(0, _stop); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | /* Find the first bit set in bit string at or after bit start. */ |
| 197 | static inline void |
no test coverage detected