Deleted Added
full compact
s_ceil.c (21673) s_ceil.c (22808)
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
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: head/lib/msun/src/s_ceil.c 21673 1997-01-14 07:20:47Z jkh $";
14static char rcsid[] = "$FreeBSD: head/lib/msun/src/s_ceil.c 22808 1997-02-16 18:26:31Z bde $";
15#endif
16
17/*
18 * ceil(x)
19 * Return x rounded toward -inf to integral value
20 * Method:
21 * Bit twiddling.
22 * Exception:

--- 5 unchanged lines hidden (view full) ---

28
29#ifdef __STDC__
30static const double huge = 1.0e300;
31#else
32static double huge = 1.0e300;
33#endif
34
35#ifdef __STDC__
15#endif
16
17/*
18 * ceil(x)
19 * Return x rounded toward -inf to integral value
20 * Method:
21 * Bit twiddling.
22 * Exception:

--- 5 unchanged lines hidden (view full) ---

28
29#ifdef __STDC__
30static const double huge = 1.0e300;
31#else
32static double huge = 1.0e300;
33#endif
34
35#ifdef __STDC__
36 double ceil(double x)
36 double __generic_ceil(double x)
37#else
37#else
38 double ceil(x)
38 double __generic_ceil(x)
39 double x;
40#endif
41{
42 int32_t i0,i1,j0;
43 u_int32_t i,j;
44 EXTRACT_WORDS(i0,i1,x);
45 j0 = ((i0>>20)&0x7ff)-0x3ff;
46 if(j0<20) {

--- 34 unchanged lines hidden ---
39 double x;
40#endif
41{
42 int32_t i0,i1,j0;
43 u_int32_t i,j;
44 EXTRACT_WORDS(i0,i1,x);
45 j0 = ((i0>>20)&0x7ff)-0x3ff;
46 if(j0<20) {

--- 34 unchanged lines hidden ---