__roundup_pow_of_two(9)
π¦ __roundup_pow_of_two(9) β Kernel API Manual π¦
hiii bestie, welcome to the Kernel API Manual page for __roundup_pow_of_two β it's giving "round up to the nearest power of two" and honestly? iconic β¨
πΈ NAME πΈ
__roundup_pow_of_two β round up to nearest power of two π
β¨ SYNOPSIS β¨
no cap, here's the exact signature:
unsigned long __roundup_pow_of_two (unsigned long n );
π ARGUMENTS π
nβ value to round up π«Ά
π SEE ALSO π
okay so the whole friend group is right here, and yes we're keeping every single one of them:
- Kernel file
./include/linux/log2.h is_power_of_2(9)__rounddown_pow_of_two(9)const_ilog2(9)ilog2(9)roundup_pow_of_two(9)rounddown_pow_of_two(9)order_base_2(9)bits_per(9)max_pow_of_two_factor(9)
xoxo, this cutie came from the source ./include/linux, dated October 2026, and it's literally the __roundup_pow_of_two(9) era π
ππ
π¦ 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