al_fixceil(3)
π 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