OSDN Git Service

nptl: rephrase *.sym handling
[uclinux-h8/uClibc.git] / libm / s_sin.c
index e732eae..03867e7 100644 (file)
@@ -1,19 +1,14 @@
-/* @(#)s_sin.c 5.1 93/09/24 */
 /*
  * ====================================================
  * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
  *
  * Developed at SunPro, a Sun Microsystems, Inc. business.
  * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice 
+ * software is freely granted, provided that this notice
  * is preserved.
  * ====================================================
  */
 
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: s_sin.c,v 1.7 1995/05/10 20:48:15 jtc Exp $";
-#endif
-
 /* sin(x)
  * Return sine function of x.
  *
@@ -23,8 +18,8 @@ static char rcsid[] = "$NetBSD: s_sin.c,v 1.7 1995/05/10 20:48:15 jtc Exp $";
  *     __ieee754_rem_pio2      ... argument reduction routine
  *
  * Method.
- *      Let S,C and T denote the sin, cos and tan respectively on 
- *     [-PI/4, +PI/4]. Reduce the argument x to y1+y2 = x-k*pi/2 
+ *      Let S,C and T denote the sin, cos and tan respectively on
+ *     [-PI/4, +PI/4]. Reduce the argument x to y1+y2 = x-k*pi/2
  *     in [-pi/4 , +pi/4], and let n = k mod 4.
  *     We have
  *
@@ -42,18 +37,13 @@ static char rcsid[] = "$NetBSD: s_sin.c,v 1.7 1995/05/10 20:48:15 jtc Exp $";
  *      trig(NaN)    is that NaN;
  *
  * Accuracy:
- *     TRIG(x) returns trig(x) nearly rounded 
+ *     TRIG(x) returns trig(x) nearly rounded
  */
 
 #include "math.h"
 #include "math_private.h"
 
-#ifdef __STDC__
-       double sin(double x)
-#else
-       double sin(x)
-       double x;
-#endif
+double sin(double x)
 {
        double y[2],z=0.0;
        int32_t n, ix;
@@ -80,3 +70,4 @@ static char rcsid[] = "$NetBSD: s_sin.c,v 1.7 1995/05/10 20:48:15 jtc Exp $";
            }
        }
 }
+libm_hidden_def(sin)