AuFixedPointRoundUp(3)

πŸ“¦ version 1.9.5, in fedora 43, fedora 44

πŸ’– AuFixedPointRoundUp(3) β€” like, the manual page bestie πŸ’–

okay so welcome to the audiolib cinematic universe, where the star of today's episode is AuFixedPointRoundUp from section 3 of the manual. she rounds things UP. that's her whole thing. she's an icon, she's a macro, she's lowkey doing the most with the least. let's get into it 🫢


✨ Name ✨

AuFixedPointRoundUp β€” and yes bestie, that trailing dash in the original is just the manpage being mysterious, there's no tagline, she simply IS. πŸ’…


πŸŽ€ Synopsis πŸŽ€

first you gotta pull her in from the header, no cap:

#include <audio/audiolib.h>

then you call her like this:

AuFixedPointRoundUp(fp)
      AuFixedPoint fp;

that's it. that's the whole vibe. 🌸


πŸ¦‹ Arguments πŸ¦‹

  • fp β€” the fixed point value in question. like, the actual number you're handing over so she can do her lil round-up moment. she needs it, you give it, everybody's happy. ✨

πŸ’œ Description πŸ’œ

AuFixedPointRoundUp returns the rounded up integral portion of fp. that's the tea. you give her a fixed point value, she gives you back the integer-y part, but rounded up instead of just chopped. round up, not round down, not round-toward-zero, UP. periodt. πŸ‘‘

and here's the juicy bit that iykyk: AuFixedPointRoundUp is implemented as a macro. so she's not some fancy function doing a whole function-call situation, she's a macro, she's fast, she's efficient, she's giving main character energy with zero overhead. don't be weird about it in a debugger, just accept her for who she is. πŸ’€


🌈 See Also 🌈

go check out her whole friend group, they're all linked together (spelling kept exactly as the original wrote it, no notes, i don't make the rules):

  • AuFixePointFractionalAddend
  • AuFixePointFromFraction
  • AuFixePointFromSum
  • AuFixePointIntegralAddend
  • AuFixePointRoundDown

and obviously:

  • audiolib β€” Network Audio System C Language Interface 🌐

πŸ“ bye bestie πŸ“

that's the page!! this whole thing lives in audiolib, version 1.9.5 (the Network Audio System C Language Interface situation), so like… that's the source, that's the version, screenshot it, memorize it, tell your friends. go round some things up. you're gonna slay. πŸ’–πŸ§šβœ¨

πŸ“¦ where this page comes from