summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/e_rem_pio2.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-08-11 11:13:48 +0000
committerdim <dim@FreeBSD.org>2012-08-11 11:13:48 +0000
commitd3224b8ca5f865af7b35f0443b1128ba4fa6f1b4 (patch)
treedd9b2d612e350756897aa331995735959d05ecf5 /lib/msun/src/e_rem_pio2.c
parente70ae9c439dfc7dae667e62f9ae2cffde3818e09 (diff)
downloadFreeBSD-src-d3224b8ca5f865af7b35f0443b1128ba4fa6f1b4.zip
FreeBSD-src-d3224b8ca5f865af7b35f0443b1128ba4fa6f1b4.tar.gz
Change a few extern inline functions in libm to static inline, since
they need to refer to static constants, which C99 does not allow for extern inline functions. While here, change a comment in e_rem_pio2f.c to mention the correct number of bits. Reviewed by: bde MFC after: 1 week
Diffstat (limited to 'lib/msun/src/e_rem_pio2.c')
-rw-r--r--lib/msun/src/e_rem_pio2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/msun/src/e_rem_pio2.c b/lib/msun/src/e_rem_pio2.c
index fde9660..6dd453a 100644
--- a/lib/msun/src/e_rem_pio2.c
+++ b/lib/msun/src/e_rem_pio2.c
@@ -48,10 +48,10 @@ pio2_2t = 2.02226624879595063154e-21, /* 0x3BA3198A, 0x2E037073 */
pio2_3 = 2.02226624871116645580e-21, /* 0x3BA3198A, 0x2E000000 */
pio2_3t = 8.47842766036889956997e-32; /* 0x397B839A, 0x252049C1 */
-#ifndef INLINE_REM_PIO2
-extern
+#ifdef INLINE_REM_PIO2
+static __inline
#endif
-__inline int
+int
__ieee754_rem_pio2(double x, double *y)
{
double z,w,t,r,fn;
OpenPOWER on IntegriCloud