rounddown_pow_of_two(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

rounddown_pow_of_two β€” round the given value down to nearest power of two.

@n β€” parameter.

Welcome to the Kernel API Manual glow-up for rounddown_pow_of_two(9), bestie πŸŽ€βœ¨

✨ SYNOPSIS ✨

rounddown_pow_of_two (n );

🌸 ARGUMENTS 🌸

  • n β€” -- undescribed -- πŸ™ˆ (yes, the manpage really leaves it at that, no cap).

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the vibe is: round the given value down to the nearest power of two ✨

  • the result is undefined when n == 0 😭 β€” like, fr fr undefined, so don't be out here expecting a cute answer.
  • this can be used to initialise global variables from constant data πŸ‘‘ β€” iconic behaviour, honestly.

πŸ’… SEE ALSO πŸ’…

🫢 final sign-off: source/version ./tools/include/linux, date October 2026, title rounddown_pow_of_two(9) β€” mwah! πŸ’–βœ¨
πŸ“¦ where this page comes from