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

Function ffs

freebsd/i386/include/cpufunc.h:200–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198#define HAVE_INLINE_FFS
199
200static __inline __pure2 int
201ffs(int mask)
202{
203 /*
204 * Note that gcc-2's builtin ffs would be used if we didn't declare
205 * this inline or turn off the builtin. The builtin is faster but
206 * broken in gcc-2.4.5 and slower but working in gcc-2.5 and later
207 * versions.
208 */
209 return (mask == 0 ? mask : (int)bsfl((u_int)mask) + 1);
210}
211
212#define HAVE_INLINE_FFSL
213

Callers 4

ffslFunction · 0.70
pci_pir_route_interruptFunction · 0.50
k6_mrmakeFunction · 0.50
k6_mrinitFunction · 0.50

Calls 1

bsflFunction · 0.85

Tested by

no test coverage detected