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

Function fls

freebsd/amd64/include/cpufunc.h:145–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143#define HAVE_INLINE_FLS
144
145static __inline __pure2 int
146fls(int mask)
147{
148 return (mask == 0 ? mask : (int)bsrl((u_int)mask) + 1);
149}
150
151#define HAVE_INLINE_FLSL
152

Callers 3

log2Function · 0.50
vlapic_process_eoiFunction · 0.50
vlapic_pending_intrFunction · 0.50

Calls 1

bsrlFunction · 0.85

Tested by

no test coverage detected