Deleted Added
full compact
e_acos.c (21673) e_acos.c (22808)
1/* @(#)e_acos.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/* @(#)e_acos.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/e_acos.c 21673 1997-01-14 07:20:47Z jkh $";
14static char rcsid[] = "$FreeBSD: head/lib/msun/src/e_acos.c 22808 1997-02-16 18:26:31Z bde $";
15#endif
16
17/* __ieee754_acos(x)
18 * Method :
19 * acos(x) = pi/2 - asin(x)
20 * acos(-x) = pi/2 + asin(x)
21 * For |x|<=0.5
22 * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c)

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

57pS4 = 7.91534994289814532176e-04, /* 0x3F49EFE0, 0x7501B288 */
58pS5 = 3.47933107596021167570e-05, /* 0x3F023DE1, 0x0DFDF709 */
59qS1 = -2.40339491173441421878e+00, /* 0xC0033A27, 0x1C8A2D4B */
60qS2 = 2.02094576023350569471e+00, /* 0x40002AE5, 0x9C598AC8 */
61qS3 = -6.88283971605453293030e-01, /* 0xBFE6066C, 0x1B8D0159 */
62qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
63
64#ifdef __STDC__
15#endif
16
17/* __ieee754_acos(x)
18 * Method :
19 * acos(x) = pi/2 - asin(x)
20 * acos(-x) = pi/2 + asin(x)
21 * For |x|<=0.5
22 * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c)

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

57pS4 = 7.91534994289814532176e-04, /* 0x3F49EFE0, 0x7501B288 */
58pS5 = 3.47933107596021167570e-05, /* 0x3F023DE1, 0x0DFDF709 */
59qS1 = -2.40339491173441421878e+00, /* 0xC0033A27, 0x1C8A2D4B */
60qS2 = 2.02094576023350569471e+00, /* 0x40002AE5, 0x9C598AC8 */
61qS3 = -6.88283971605453293030e-01, /* 0xBFE6066C, 0x1B8D0159 */
62qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
63
64#ifdef __STDC__
65 double __ieee754_acos(double x)
65 double __generic___ieee754_acos(double x)
66#else
66#else
67 double __ieee754_acos(x)
67 double __generic___ieee754_acos(x)
68 double x;
69#endif
70{
71 double z,p,q,r,w,s,c,df;
72 int32_t hx,ix;
73 GET_HIGH_WORD(hx,x);
74 ix = hx&0x7fffffff;
75 if(ix>=0x3ff00000) { /* |x| >= 1 */

--- 36 unchanged lines hidden ---
68 double x;
69#endif
70{
71 double z,p,q,r,w,s,c,df;
72 int32_t hx,ix;
73 GET_HIGH_WORD(hx,x);
74 ix = hx&0x7fffffff;
75 if(ix>=0x3ff00000) { /* |x| >= 1 */

--- 36 unchanged lines hidden ---