__fixp_sin32(9)
π __fixp_sin32(9) π
okay bestie, so this is a page straight out of the Kernel API Manual and it's honestly such a little cutie β it does exactly one thing and does it slay. no cap, it's giving "small but mighty" main character energy β¨
πΈ NAME πΈ
__fixp_sin32 β returns the sin of an angle in degrees π¦
like⦠it's a sine function. for the kernel. that's the whole vibe. obsessed.
π SYNOPSIS π
s32 __fixp_sin32 (int degrees );
that's it. that's the whole signature. so clean, so iconic π
β ARGUMENTS β
degreesβ the angle, in degrees, from0to360. literally just a good old angle, nothing spooky, promise π«Ά
π DESCRIPTION π
so what does it actually hand back to you? the returned value ranges from -0x7fffffff to +0x7fffffff. yes those are real numbers, yes they're huge, yes that's the point β it's fixed-point math, bestie, everything is scaled way up. iykyk π
π SEE ALSO π
peep the kernel file ./include/linux/fixp-arith.h for the whole friend group:
they're all literally right there in the same header, go say hi π§
and that's the tea! π this cutie lives in ./include/linux, it's dated October 2026, and it's page __fixp_sin32(9) of the Kernel API Manual β mwah, periodt ππ₯
π¦ 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