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

Function bit_test

freebsd/sys/bitstring.h:138–142  ·  view source on GitHub ↗

Is bit N of bit string set? */

Source from the content-addressed store, hash-verified

136
137/* Is bit N of bit string set? */
138static inline int
139bit_test(const bitstr_t *_bitstr, int _bit)
140{
141 return ((_bitstr[_bit_idx(_bit)] & _bit_mask(_bit)) != 0);
142}
143
144/* Set bit N of bit string. */
145static inline void

Callers 12

ip_randomidFunction · 0.85
fork_findpidFunction · 0.85
proc_id_setFunction · 0.85
proc_id_set_condFunction · 0.85
proc_id_clearFunction · 0.85
optimize_unrFunction · 0.85
alloc_unr_specificlFunction · 0.85
free_unrlFunction · 0.85
print_unrFunction · 0.85
tid_free_lockedFunction · 0.85
iflib_fl_refillFunction · 0.85

Calls 2

_bit_idxFunction · 0.85
_bit_maskFunction · 0.85

Tested by

no test coverage detected