DIV_S64_ROUND_CLOSEST(9)
π DIV_S64_ROUND_CLOSEST(9) π
okay so bestie, welcome to the Kernel API Manual page for DIV_S64_ROUND_CLOSEST(9) β and yes, the name is doing the absolute most, but itβs also being fr fr honest: this is the signed 64bit divide with 32bit divisor rounded to nearest integer situation. π
β¨
πΈ NAME πΈ
DIV_S64_ROUND_CLOSEST β signed 64bit divide with 32bit divisor rounded to nearest integer. no cap, thatβs the whole name and the whole vibe. π
π SYNOPSIS π
DIV_S64_ROUND_CLOSEST (dividend , divisor );
π ARGUMENTS π
dividendβ signed 64bit dividend. the main character number being divided. πdivisorβ signed 32bit divisor. the number doing the dividing. π¦
β¨ DESCRIPTION β¨
Divide the signed 64bit dividend by the signed 32bit divisor and round to the closest integer. thatβs it, thatβs the lore. π«Ά
π«Ά RETURN π«Ά
dividend / divisor rounded to nearest integer. periodt. π
π¦ SEE ALSO π¦
- Kernel file:
./include/linux/math64.hπ div_u64_rem(9)div_s64_rem(9)div64_u64_rem(9)div64_s64_rem(9)div64_u64(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)roundup_u64(9)
xoxo, your source/version bestie from ./include/linux, dated October 2026, serving DIV_S64_ROUND_CLOSEST(9) energy forever π
ππ
π¦ 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