s_sin.c (21673) | s_sin.c (22808) |
---|---|
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 | 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 21673 1997-01-14 07:20:47Z jkh $"; | 14static char rcsid[] = "$FreeBSD: head/lib/msun/src/s_sin.c 22808 1997-02-16 18:26:31Z bde $"; |
15#endif 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] --- 21 unchanged lines hidden (view full) --- 44 * Accuracy: 45 * TRIG(x) returns trig(x) nearly rounded 46 */ 47 48#include "math.h" 49#include "math_private.h" 50 51#ifdef __STDC__ | 15#endif 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] --- 21 unchanged lines hidden (view full) --- 44 * Accuracy: 45 * TRIG(x) returns trig(x) nearly rounded 46 */ 47 48#include "math.h" 49#include "math_private.h" 50 51#ifdef __STDC__ |
52 double sin(double x) | 52 double __generic_sin(double x) |
53#else | 53#else |
54 double sin(x) | 54 double __generic_sin(x) |
55 double x; 56#endif 57{ 58 double y[2],z=0.0; 59 int32_t n, ix; 60 61 /* High word of x. */ 62 GET_HIGH_WORD(ix,x); --- 20 unchanged lines hidden --- | 55 double x; 56#endif 57{ 58 double y[2],z=0.0; 59 int32_t n, ix; 60 61 /* High word of x. */ 62 GET_HIGH_WORD(ix,x); --- 20 unchanged lines hidden --- |