1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-17 16:29:32 +00:00
cc65/libsrc/float/softmath/softmath-ceilf.c

15 lines
167 B
C

#include <math.h>
/* FIXME: this is really too simple */
float ceilf(float x)
{
int n = (int) x;
if (n >= x) {
return n;
}
return n + 1;
}