summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/msun/src/e_rem_pio2.c11
-rw-r--r--lib/msun/src/s_cos.c7
-rw-r--r--lib/msun/src/s_sin.c7
-rw-r--r--lib/msun/src/s_tan.c7
4 files changed, 19 insertions, 13 deletions
diff --git a/lib/msun/src/e_rem_pio2.c b/lib/msun/src/e_rem_pio2.c
index caf391d..5467744 100644
--- a/lib/msun/src/e_rem_pio2.c
+++ b/lib/msun/src/e_rem_pio2.c
@@ -12,9 +12,8 @@
*
*/
-#ifndef lint
-static char rcsid[] = "$FreeBSD$";
-#endif
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
/* __ieee754_rem_pio2(x,y)
*
@@ -56,7 +55,11 @@ pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */
pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */
pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
- int32_t __ieee754_rem_pio2(double x, double *y)
+#ifdef INLINE_REM_PIO2
+extern inline
+#endif
+int
+__ieee754_rem_pio2(double x, double *y)
{
double z,w,t,r,fn;
double tx[3];
diff --git a/lib/msun/src/s_cos.c b/lib/msun/src/s_cos.c
index b2fae38..496027c 100644
--- a/lib/msun/src/s_cos.c
+++ b/lib/msun/src/s_cos.c
@@ -10,9 +10,8 @@
* ====================================================
*/
-#ifndef lint
-static char rcsid[] = "$FreeBSD$";
-#endif
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
/* cos(x)
* Return cosine function of x.
@@ -48,7 +47,9 @@ static char rcsid[] = "$FreeBSD$";
#include <float.h>
#include "math.h"
+#define INLINE_REM_PIO2
#include "math_private.h"
+#include "e_rem_pio2.c"
double
cos(double x)
diff --git a/lib/msun/src/s_sin.c b/lib/msun/src/s_sin.c
index 7cd3877..f6ed2b5 100644
--- a/lib/msun/src/s_sin.c
+++ b/lib/msun/src/s_sin.c
@@ -10,9 +10,8 @@
* ====================================================
*/
-#ifndef lint
-static char rcsid[] = "$FreeBSD$";
-#endif
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
/* sin(x)
* Return sine function of x.
@@ -48,7 +47,9 @@ static char rcsid[] = "$FreeBSD$";
#include <float.h>
#include "math.h"
+#define INLINE_REM_PIO2
#include "math_private.h"
+#include "e_rem_pio2.c"
double
sin(double x)
diff --git a/lib/msun/src/s_tan.c b/lib/msun/src/s_tan.c
index d9d37b6..bd62789 100644
--- a/lib/msun/src/s_tan.c
+++ b/lib/msun/src/s_tan.c
@@ -10,9 +10,8 @@
* ====================================================
*/
-#ifndef lint
-static char rcsid[] = "$FreeBSD$";
-#endif
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
/* tan(x)
* Return tangent function of x.
@@ -47,7 +46,9 @@ static char rcsid[] = "$FreeBSD$";
#include <float.h>
#include "math.h"
+#define INLINE_REM_PIO2
#include "math_private.h"
+#include "e_rem_pio2.c"
double
tan(double x)
OpenPOWER on IntegriCloud