AuFixedPointFromSum(3)
π AuFixedPointFromSum(3) β like, the fixed point girlie π
okay bestie, so this is a page from the Library Functions Manual, section 3, and it's all about one lil macro that lives in audiolib. no cap, it's tiny, but it's iconic for what it does. let's get into it π¦
β¨ NAME β¨
AuFixedPointFromSum β make a fixed point value π
πΈ SYNOPSIS πΈ
#include <audio/audiolib.h>
AuFixedPoint AuFixedPointFromSum(a, b)
int a;
int b;
π ARGUMENTS π
aβ the integral value for the fixed point value. like, the whole-number part, the main character of the pair πbβ the fractional value for the fixed point value. the lil decimal-y sidekick, the bestie toa's main character π«Ά
π DESCRIPTION π
AuFixedPointFromSum constructs a fixed point from the two arguments. that's it, that's the whole vibe β you hand it a and b, it hands you back a fixed point. slay β¨
and here's the tea: AuFixedPointFromSum is implemented as a macro. so it's not even a real function call, it's just vibes that expand at compile time. periodt π
π¦ SEE ALSO π¦
AuFixePointFractionalAddendAuFixePointFromFractionAuFixePointIntegralAddendAuFixePointRoundDownAuFixePointRoundUp
audiolib β Network Audio System C Language Interface π
ok so real talk, those names in SEE ALSO are spelled exactly like that in the original βAuFixePointwith nod. not me fixing it, because the one rule is we keep every single detail fr fr. so if you go searching forAuFixedPointRoundDownyou might be looking for the wrong thing, iykyk π
and that's the whole page, bestie, we ate π no crumbs left. this was audiolib version 1.9.5, section 3 of the Library Functions Manual, AuFixedPointFromSum(3). go forth and make fixed points, you've got this πβ¨π
π¦ where this page comes from
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-11.fc41 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 43: nas-devel 1.9.5-14.fc43 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- fedora 44: nas-devel 1.9.5-15.fc44 Β· MIT
- copyright 1994 Steven King
- Copyright 1993 Network Computing Devices, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms