order_base_2(9)
π NAME π
okay so bestie, this is the order_base_2 page from the Kernel API Manual, and the whole vibe is: calculate the (rounded up) base 2 order of the argument. no cap. π«Ά
β¨ SYNOPSIS β¨
order_base_2 (n );
π ARGUMENTS π
nβ parameter. that's literally the whole argument description. iconic minimalism. π
π¦ DESCRIPTION π¦
the first few values calculated by this routine are, fr fr:
ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.
so yeah β ob2(0) is 0, ob2(1) is 0, ob2(2) is 1, ob2(3) is 2, ob2(4) is 2, ob2(5) is 3, and it just keeps rolling from there. periodt. π
π₯ SEE ALSO π₯
okay bestie, these are the related pages and the kernel file β go peek, iykyk:
- Kernel file
./include/linux/log2.h is_power_of_2(9)__roundup_pow_of_two(9)__rounddown_pow_of_two(9)const_ilog2(9)ilog2(9)roundup_pow_of_two(9)rounddown_pow_of_two(9)bits_per(9)max_pow_of_two_factor(9)
mwah π this lil page lives in ./include/linux, is dated October 2026, and it's the order_base_2(9) manual page β that's the whole footer, periodt. ππ
π¦ 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