Augustin Cavalier b973a1b377 kernel/util: Add fls to BitUtils.
Implemented using __builtin_clz where available, otherwise using
an algorithm derived from "Bit Twiddling Hacks" which is similar
to the one ramfs uses. GCC and Clang seem to unroll the loop on
x86 at least (but it doesn't matter there as the builtin exists,
implemented using the "bsr" instruction.)
2024-09-02 14:16:05 -04:00
..
2023-07-24 21:00:56 +00:00
2024-09-02 14:16:05 -04:00
2021-07-16 18:35:34 +00:00
2023-04-29 22:46:03 +02:00
2023-08-13 21:14:51 +00:00
2024-07-29 08:11:40 +00:00