al_fixceil(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– NAME πŸ’–

al_fixceil β€” Allegro 5 API, bestie. This page is al_fixceil(3) from the Library Functions Manual, and it’s here to make ceiling rounding make sense. 🫢

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

int al_fixceil(al_fixed x);

πŸŽ€ DESCRIPTION πŸŽ€

Okay so literally what it does: returns the smallest integer not less than x. That is, it rounds towards positive infinity. It’s giving ceiling energy, no cap. ✨

Example, because we love a visual:

int result;

/* This will put 34 into `result'. */
result = al_fixceil(al_itofix(100) / 3);

/* This will round up to 17. */
result = al_fixceil(al_itofix(100) / 6);

🌈 SEE ALSO 🌈

Go say hi to these besties too:


mwah πŸ’‹βœ¨ β€” source: Allegro reference manual; page: al_fixceil(3); version: Allegro 5 API; date: not printed on this page, bestie, so I’m not making one up πŸ’…πŸ“

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms