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 *****************************************************************/
21 _DEFUN (ceilf
, (float),
30 else if (x
> -1.0 && x
< 1.0)
31 return (x
> 0 ? 1.0 : 0.0);
33 return (x
> 0 ? f
+ 1.0 : f
);
36 #ifdef _DOUBLE_IS_32BITS
37 double ceil (double x
)
39 return (double) ceilf ((float) x
);
42 #endif /* defined(_DOUBLE_IS_32BITS) */