vc7_128_div_64_to_64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

vc7_128_div_64_to_64 β€” from the Kernel API Manual β€” divides a 128-bit uint by a 64-bit divisor and returns a 64-bit quotient. Periodt. πŸ’…

✨ SYNOPSIS ✨

u64 vc7_128_div_64_to_64 (u64 numhi , u64 numlo , u64 den , u64 *r );

πŸŽ€ ARGUMENTS πŸŽ€

  • numhi β€” the uppper 64-bits of the dividend. yes bestie, that’s the spelling on the page 😭
  • numlo β€” the lower 64-bits of the dividend.
  • den β€” the denominator (divisor).
  • r β€” the remainder; pass NULL if the remainder is not needed.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this one is originally from libdivide, but it’s been modified to use kernel u64/u32 types. iykyk ✨

See https://github.com/ridiculousfish/libdivide/blob/master/libdivide.h#L471.

In case of overflow of division by zero, max(u64) is returned. That’s the caveat, bestie β€” don’t forget it. πŸ’€

πŸ’– RETURN πŸ’–

The 64-bit quotient of the division. That’s the main character result. πŸ‘‘

🌈 SEE ALSO 🌈

Go peek at those if you want the full lore. 🫢

made with πŸ’– from source ./drivers/clk, dated October 2026, on page vc7_128_div_64_to_64(9) β€” bye bestie! πŸ¦‹

πŸ“¦ where this page comes from