rounddown(9)
Bestie, this is rounddown(9) from the Kernel API Manual β the little kernel math page that rounds down to the next specified multiple. It's giving numbers but make it cute. π
β¨
πΈ NAME πΈ
rounddown β round down to next specified multiple π
π SYNOPSIS π
rounddown (x , y );
π ARGUMENTS π
xβ the value to round, bestie. Like, the number you're about to snap down. πyβ the multiple to round down to. This is the step size you're snapping to. π¦
π DESCRIPTION π
Rounds x down to the next multiple of y. That's the whole vibe: value plus multiple, rounded down. Periodt. β¨
Ifywill always be a power of 2, consider using the fasterround_down. No cap, that's the speedier option for that exact situation. π¨
π¦ SEE ALSO π¦
Go check out the kernel file ./include/linux/math.h and these iconic math-adjacent friends:
Signed, sealed, slayed: source/version is ./include/linux, date is October 2026, and this whole page is rounddown(9). Byeee, 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