generic_fls(9)
β¨ NAME β¨
okay so bestie, this is the Kernel API Manual page for generic_fls(9) β and it does exactly what it says on the tin: find last (most-significant) bit set. π
generic_flsβ find last (most-significant) bit set
π¦ SYNOPSIS π¦
int generic_fls (unsigned int x );
π ARGUMENTS π
xβ the word to search. Thatβs the whole input, bestie. π«Ά
π DESCRIPTION π
Itβs defined the same way as ffs, no cap. Also note these little iconic values: fls(0) = 0, fls(1) = 1, and fls(0x80000000) = 32. Periodt. π₯
π SEE ALSO π
- Kernel file
./tools/include/asm-generic/bitops/fls.hβ go read the source, iykyk. π
π«Ά source/version: ./tools/include/asm-generic/bi... Β· date: October 2026 Β· signing off from generic_fls(9) π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms