FFS32(3) | NetBSD Library Functions Manual | FFS32(3) |
int
ffs32(uint32_t n);
int
ffs64(uint64_t n);
int
fls32(uint32_t n);
int
fls64(uint64_t n);
The search always starts from the bit 1 (the least significant bit). If the argument n is zero, each function returns zero.
uint32_t n = 0x44; /* 01000100 */ int f, l; f = ffs32(n); l = fls32(n);
April 8, 2011 | NetBSD 5.99 |