MCPcopy Create free account
hub / github.com/F-Stack/f-stack / _bit_make_mask

Function _bit_make_mask

freebsd/sys/bitstring.h:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static inline bitstr_t
108_bit_make_mask(int _start, int _stop)
109{
110 return ((_BITSTR_MASK << _bit_offset(_start)) &
111 (_BITSTR_MASK >> (_BITSTR_BITS - _bit_offset(_stop) - 1)));
112}
113
114/*----------------------------- Public Interface -----------------------------*/
115/* Number of bytes allocated for a bit string of nbits bits */

Callers 7

bit_nsetFunction · 0.85
bit_nclearFunction · 0.85
bit_ffs_atFunction · 0.85
bit_ffc_atFunction · 0.85
bit_ffs_area_atFunction · 0.85
bit_ffc_area_atFunction · 0.85
bit_countFunction · 0.85

Calls 1

_bit_offsetFunction · 0.85

Tested by

no test coverage detected