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

Function bitpos

freebsd/kern/subr_blist.c:207–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static inline int
208bitpos(u_daddr_t mask)
209{
210
211 switch (sizeof(mask)) {
212#ifdef HAVE_INLINE_FFSLL
213 case sizeof(long long):
214 return (ffsll(mask) - 1);
215#endif
216#ifdef HAVE_INLINE_FFS
217 case sizeof(int):
218 return (ffs(mask) - 1);
219#endif
220 default:
221 return (generic_bitpos(mask));
222 }
223}
224
225/*
226 * blist_create() - create a blist capable of handling up to the specified

Callers 5

blist_statsFunction · 0.85
blst_next_leaf_allocFunction · 0.85
blst_leaf_allocFunction · 0.85
blst_meta_allocFunction · 0.85
blst_radix_printFunction · 0.85

Calls 3

generic_bitposFunction · 0.85
ffsllFunction · 0.50
ffsFunction · 0.50

Tested by

no test coverage detected