__fixp_sin32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __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, from 0 to 360. 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