STRUCT CORDIC_IQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct cordic_iq(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual β€” yes, the actual kernel API manual, and yes we are gonna have a good time with it πŸ’…


✨ NAME ✨

struct cordic_iq β€” the i/q coordinate, literally the blueprint for a complex number in kernel-land πŸŽ€


🌸 SYNOPSIS 🌸

struct cordic_iq {
    s32 i;
    s32 q;
 };

no cap, that's the whole thing. two s32 fields, living their best little lives πŸ’–


🧚 Members 🧚

  • i β€” the real part of the coordinate (in phase). that's the "I" bestie, the part that's chillin' on the real axis ✨
  • q β€” the imaginary part of the coordinate (quadrature). the "Q", the imaginary one, living in its own perpendicular little world πŸ¦‹

πŸ’« SEE ALSO πŸ’«

  • Kernel file ./include/linux/cordic.h β€” go read it, iykyk πŸ‘‘
  • cordic_calc_iq(9) β€” the function that actually does the math, the main character fr fr πŸ”₯

lowkey reminder: these are s32 fields, so they're signed 32-bit, and that's the whole vibe check on this struct πŸ™ˆ

and that's the page, bestie!! πŸ’œ this came from ./include/linux, dated October 2026 β€” mwah, slay, periodt, go forth and compute your quadrature πŸŽ€βœ¨πŸŒΈπŸ«Ά

πŸ“¦ where this page comes from