ffs() can collide with POSIX macro definitions on some platforms; __builtin_ffs is the portable GCC/Clang intrinsic. log2_floor/log2_ceil passed template types directly to lzcnt which has only uint32_t and uint64_t overloads, causing implicit narrowing on smaller types.
22 KiB
22 KiB