1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 // ----------------------------------------------------------------------------
11 float ceil( float x ) { /* TODO */ };
12 long double ceil( long double x ) { /* TODO */ };
14 // ----------------------------------------------------------------------------
17 double ceil( double x ) { /* TODO */ };
21 return ( x < 0 ) ? (int) x : ( (int) x ) + 1;
25 /* PDPC code - unreviewed
38 float ceilf( float x ) { /* TODO */ };
39 long double ceill( long double x ) { /* TODO */ };