div64_u64(9)
π div64_u64(9)
okay so bestie, welcome to the Kernel API Manual β yes, the kernel has man pages, and yes, this one is about dividing a 64-bit number by another 64-bit number. glamorous? no. essential? absolutely. let's get into it β¨
πΈ NAME
div64_u64 β unsigned 64bit divide with 64bit divisor
like, the whole personality of this function is "I divide a u64 by a u64 and I don't do signed math, tyvm" π
β¨ SYNOPSIS
u64 div64_u64 (u64 dividend , u64 divisor );
that's it. that's the whole function. two args in, one u64 out. iconic behavior honestly π«Ά
π§ ARGUMENTS
dividendβ unsigned 64bit dividend. this is the number getting chopped up, the main character of the operation πdivisorβ unsigned 64bit divisor. this is the number doing the chopping. the supporting role that lowkey runs the whole thing π₯
π RETURN
dividend / divisor
fr fr, it just hands you back the quotient. no cap, no surprises, no extra credit π
π¦ SEE ALSO
first up, the filing cabinet it lives in: Kernel file ./include/linux/math64.h
and then the whole friend group:
div_u64_rem(9)div_s64_rem(9)div64_u64_rem(9)div64_s64_rem(9)div64_s64(9)div_u64(9)div_s64(9)mul_u64_add_u64_div_u64(9)mul_u64_u64_div_u64(9)mul_u64_u64_div_u64_roundup(9)DIV64_U64_ROUND_UP(9)DIV_U64_ROUND_UP(9)DIV64_U64_ROUND_CLOSEST(9)DIV_U64_ROUND_CLOSEST(9)DIV_S64_ROUND_CLOSEST(9)roundup_u64(9)
if you need remainders, signed variants, or rounding macros β they're all right there bestie, go say hi π
ngl this one's a short page, but that's the vibe: one function, unsigned, 64 by 64, done. no drama, only division πΈ
and that's a wrap!! this page shipped from ./include/linux back in October 2026, and it's literally titled div64_u64(9) β mwah, slay, go divide something π
π
π¦ 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