round_up(9)
πΈ NAME πΈ
round_up β round up to next specified power of 2
Okay bestie, this is round_up(9) from the Kernel API Manual, and it's here to make your rounding moment iconic β¨
β¨ SYNOPSIS β¨
round_up (x , y );
π ARGUMENTS π
xβ the value to round, literally the main character here πyβ the multiple to round up to, and it must be a power of 2. No cap, this is a hard requirement π«Ά
π¦ DESCRIPTION π¦
So round_up rounds x up to the next multiple of y β and y has to be a power of 2, periodt. π
If you need to do arbitrary rounding up instead, the page says to use roundup below. Slay. β¨
π SEE ALSO π
Go give these icons a little look π:
- Kernel file
./include/linux/math.h round_down(9)DIV_ROUND_UP_POW2(9)roundup(9)rounddown(9)abs(9)abs_diff(9)reciprocal_scale(9)
mwah π source/version footer energy: ./include/linux Β· October 2026 Β· round_up(9) β and that's the vibe, bestie π
π¦ 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