Go to the source code of this file.
|
int | cstl_fls (const unsigned long x) |
| Find the last (highest order) bit set.
|
|
◆ cstl_fls()
int cstl_fls |
( |
unsigned long |
x | ) |
|
Find the last (highest order) bit set.
- Returns
- Zero-based index of the highest order set bit
- Return values
-
-1 | No bits are set, i.e. the input value is zero |
Definition at line 7 of file common.c.