wrapping_mul(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to wrapping_mul from the Kernel API Manual, bestie β€” this is the intentionally-on-purpose multiplication moment and I’m obsessed πŸ’…βœ¨

✨ NAME ✨

wrapping_mul is literally Intentionally perform a wrapping multiplication 😌. That’s the assignment. It’s giving β€œyes I know it wraps, I meant that” energy, and honestly? Iconic.

πŸ’» SYNOPSIS πŸ’»

the call looks like this, copy it exactly:

wrapping_mul (type , a , b );

πŸŽ€ ARGUMENTS πŸŽ€

  • type β€” type for result of calculation, no cap 🫢
  • a β€” first factor πŸ“
  • b β€” second factor πŸ“

two factors, one type, all accounted for πŸ’–

🌸 DESCRIPTION 🌸

Return the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled. That’s the whole vibe: you get the multiplication, it may wrap around, and the sanitizers that may be enabled do not get tripped. Periodt. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/overflow.h is the home base for this whole friend group 🫢. Full guest list, no skips:

source/version: ./include/linux Β· date: October 2026 Β· page: wrapping_mul(9) β€” bye bestie, go multiply on purpose πŸ’…βœ¨

πŸ“¦ where this page comes from