Deleted Added
full compact
s_sin.c (176360) s_sin.c (176385)
1/* @(#)s_sin.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_sin.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_sin.c 176360 2008-02-17 07:33:12Z das $";
15#endif
13#include <sys/cdefs.h>
14__FBSDID("$FreeBSD: head/lib/msun/src/s_sin.c 176385 2008-02-18 14:02:12Z bde $");
16
17/* sin(x)
18 * Return sine function of x.
19 *
20 * kernel function:
21 * __kernel_sin ... sine function on [-pi/4,pi/4]
22 * __kernel_cos ... cose function on [-pi/4,pi/4]
23 * __ieee754_rem_pio2 ... argument reduction routine

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

43 *
44 * Accuracy:
45 * TRIG(x) returns trig(x) nearly rounded
46 */
47
48#include <float.h>
49
50#include "math.h"
15
16/* sin(x)
17 * Return sine function of x.
18 *
19 * kernel function:
20 * __kernel_sin ... sine function on [-pi/4,pi/4]
21 * __kernel_cos ... cose function on [-pi/4,pi/4]
22 * __ieee754_rem_pio2 ... argument reduction routine

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

42 *
43 * Accuracy:
44 * TRIG(x) returns trig(x) nearly rounded
45 */
46
47#include <float.h>
48
49#include "math.h"
50#define INLINE_REM_PIO2
51#include "math_private.h"
51#include "math_private.h"
52#include "e_rem_pio2.c"
52
53double
54sin(double x)
55{
56 double y[2],z=0.0;
57 int32_t n, ix;
58
59 /* High word of x. */

--- 29 unchanged lines hidden ---
53
54double
55sin(double x)
56{
57 double y[2],z=0.0;
58 int32_t n, ix;
59
60 /* High word of x. */

--- 29 unchanged lines hidden ---