div_s64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ div_s64 β€” signed 64bit divide with 32bit divisor πŸ’…

okay so bestie, welcome to the div_s64(9) page, straight out of the Kernel API Manual πŸŽ€. this one is short and sweet and honestly iconic for it β€” it's a little math baddie that does one job and does it flawlessly.


🌸 SYNOPSIS 🌸

s64 div_s64 (s64 dividend , s32 divisor );

like, look at her. two args, one return, no drama. main character energy fr fr ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dividend β€” the signed 64bit dividend πŸ“, aka the number getting chopped up. it's an s64, so she's big and she can go negative, we love a range queen.
  • divisor β€” the signed 32bit divisor πŸ’œ, aka the number doing the chopping. tiny but mighty, an s32, signed and everything.

🌈 RETURN 🌈

the function hands you back dividend / divisor β€” that's it, that's the whole vibe. the quotient, served fresh, no cap πŸ’…

ngl bestie, this page does not spell out what happens if divisor is 0. the docs stay silent, so don't come for me β€” just know the manpage makes zero promises there πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

okay the friend group is huge and they're all in the kernel file ./include/linux/math64.h β€” go say hi to the whole crew:

literally the whole math64 extended universe, iykyk πŸ§šπŸ’–


that's the page!! mwah, go divide something signed 🫢

this one came to you from the source ./include/linux, dated October 2026 β€” periodt, end of page, stan the kernel docs ⭐πŸ”₯

πŸ“¦ where this page comes from