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

Function bitrange

freebsd/kern/subr_blist.c:179–185  ·  view source on GitHub ↗

* Provide a mask with count bits set, starting as position n. */

Source from the content-addressed store, hash-verified

177 * Provide a mask with count bits set, starting as position n.
178 */
179static inline u_daddr_t
180bitrange(int n, int count)
181{
182
183 return (((u_daddr_t)-1 << n) &
184 ((u_daddr_t)-1 >> (BLIST_RADIX - (n + count))));
185}
186
187/*
188 * Find the first bit set in a u_daddr_t.

Callers 9

generic_bitposFunction · 0.85
blist_statsFunction · 0.85
blst_next_leaf_allocFunction · 0.85
blst_leaf_allocFunction · 0.85
blst_meta_allocFunction · 0.85
blst_leaf_freeFunction · 0.85
blst_meta_freeFunction · 0.85
blst_leaf_fillFunction · 0.85
blst_radix_printFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected