round_up(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 πŸ‘‘:


mwah πŸ’‹ source/version footer energy: ./include/linux Β· October 2026 Β· round_up(9) β€” and that's the vibe, bestie πŸŽ€

πŸ“¦ where this page comes from