|
|
1.1 ! root 1: /* ! 2: * libm/ceil.c ! 3: * Ceiling. ! 4: */ ! 5: ! 6: #include <math.h> ! 7: ! 8: #if EMU87 ! 9: #include "emumath.h" ! 10: #endif ! 11: ! 12: double ! 13: ceil(x) double x; ! 14: { ! 15: double r; ! 16: ! 17: return (modf(x, &r) > 0.0) ? r + 1.0 : r; ! 18: } ! 19: ! 20: /* end of libm/ceil.c */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.