s_ceil.c (5014f8ded47a5e6d770ca588a2b929dff2617667) s_ceil.c (63b4a1f80c8236a7c8ec469e48793745338d6e6a)
1/* @(#)s_ceil.c 5.1 93/09/24 */
2/*
3 * ====================================================
4 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5 *
6 * Developed at SunPro, a Sun Microsystems, Inc. business.
7 * Permission to use, copy, modify, and distribute this
8 * software is freely granted, provided that this notice
9 * is preserved.
10 * ====================================================
11 */
12
1/* @(#)s_ceil.c 5.1 93/09/24 */
2/*
3 * ====================================================
4 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
5 *
6 * Developed at SunPro, a Sun Microsystems, Inc. business.
7 * Permission to use, copy, modify, and distribute this
8 * software is freely granted, provided that this notice
9 * is preserved.
10 * ====================================================
11 */
12
13#ifndef lint
14static char rcsid[] = "$FreeBSD$";
15#endif
13#include <sys/cdefs.h>
14__FBSDID("$FreeBSD$");
16
17/*
18 * ceil(x)
19 * Return x rounded toward -inf to integral value
20 * Method:
21 * Bit twiddling.
22 * Exception:
23 * Inexact flag raised if x not equal to ceil(x).
24 */
25
15
16/*
17 * ceil(x)
18 * Return x rounded toward -inf to integral value
19 * Method:
20 * Bit twiddling.
21 * Exception:
22 * Inexact flag raised if x not equal to ceil(x).
23 */
24
25#include <float.h>
26
26#include "math.h"
27#include "math_private.h"
28
29static const double huge = 1.0e300;
30
31double
32ceil(double x)
33{

--- 43 unchanged lines hidden ---
27#include "math.h"
28#include "math_private.h"
29
30static const double huge = 1.0e300;
31
32double
33ceil(double x)
34{

--- 43 unchanged lines hidden ---