2 /* @(#)z_ceilf.c 1.0 98/08/13 */
3 /*****************************************************************
7 * x - floating point value
10 * Smallest integer greater than x.
13 * This routine returns the smallest integer greater than x.
15 *****************************************************************/
29 else if (x
> -1.0 && x
< 1.0)
30 return (x
> 0 ? 1.0 : 0.0);
32 return (x
> 0 ? f
+ 1.0 : f
);
35 #ifdef _DOUBLE_IS_32BITS
36 double ceil (double x
)
38 return (double) ceilf ((float) x
);
41 #endif /* defined(_DOUBLE_IS_32BITS) */