vc7_128_div_64_to_64(9)
πΈ 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; passNULLif 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 π
- Kernel file
./drivers/clk/clk-versaclock7.c vc7_64_mul_64_to_128(9)
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
- 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