diff --git a/lib/msun/src/e_rem_pio2.c b/lib/msun/src/e_rem_pio2.c index caf391d3b3c3..5467744b706a 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 +__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 b2fae3843f86..496027ca2578 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 +__FBSDID("$FreeBSD$"); /* cos(x) * Return cosine function of x. @@ -48,7 +47,9 @@ static char rcsid[] = "$FreeBSD$"; #include #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 7cd387719ff5..f6ed2b5671ff 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 +__FBSDID("$FreeBSD$"); /* sin(x) * Return sine function of x. @@ -48,7 +47,9 @@ static char rcsid[] = "$FreeBSD$"; #include #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 d9d37b68de63..bd62789d7f71 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 +__FBSDID("$FreeBSD$"); /* tan(x) * Return tangent function of x. @@ -47,7 +46,9 @@ static char rcsid[] = "$FreeBSD$"; #include #include "math.h" +#define INLINE_REM_PIO2 #include "math_private.h" +#include "e_rem_pio2.c" double tan(double x)