DIV64_U64_ROUND_CLOSEST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ DIV64_U64_ROUND_CLOSEST(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for DIV64_U64_ROUND_CLOSEST β€” manual name folded in near the top, as promised, not copied as a header line. This is the unsigned 64bit divide-with-nearest-integer entry, and it's giving main character energy in math64.h. πŸ’…βœ¨


✨ SYNOPSIS ✨

DIV64_U64_ROUND_CLOSEST (dividend , divisor );

🌸 ARGUMENTS 🌸

  • dividend β€” the unsigned 64bit dividend, aka the number getting divided. 🫢
  • divisor β€” the unsigned 64bit divisor, aka the number doing the dividing. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

The actual move: divide the unsigned 64bit dividend by the unsigned 64bit divisor, then round to the closest integer. That's the whole vibe. Not extra, not mysterious β€” rounded to nearest integer, periodt. ✨

πŸ‘‘ RETURN πŸ‘‘

It returns dividend / divisor rounded to the nearest integer. Slay. πŸ’–πŸ”₯

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/math64.h β€” and the whole friend group:


that's the whole page, bestie 🫢 source/version: ./include/linux, date stamp: October 2026. byeee πŸ’…βœ¨

πŸ“¦ where this page comes from