fixp_linear_interpolate(9)
π fixp_linear_interpolate(9) β like, the Kernel API Manual page, bestie π
okay so first things first: we're in the Kernel API Manual section (9), and the star of the show is fixp_linear_interpolate. she interpolates. she's linear. she's everything. π
β¨ NAME β¨
fixp_linear_interpolate β interpolates a value from two known points π¦
like literally, you give her two points and an x, and she finds the y. math girlie behavior. no cap.
β¨ SYNOPSIS β¨
int fixp_linear_interpolate (int x0 , int y0 , int x1 , int y1 , int x );
five ints in, one int out. that's the whole vibe check. π
β¨ ARGUMENTS β¨
okay so here's the cast of characters, and yes every single one matters π
x0β x value of point 0 β¨y0β y value of point 0 πx1β x value of point 1 πΈy1β y value of point 1 π¦xβ the linear interpolant π (this is the one you're actually asking about, she's the main character)
fr fr, don't mix up your x's and y's β points 0 and 1 are the two known points you're interpolating between, and x is the spot you want a value for. π«Ά
β¨ SEE ALSO β¨
go check out the kernel file ./include/linux/fixp-arith.h β that's where the magic lives πβ¨
and while you're there, the whole friend group:
iykyk π
that's the page!! sending you off with the official sign-off: this one's from ./include/linux and it's dated October 2026 β so yeah, she's from the future, iconic behavior honestly πβπ
π¦ 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