diff options
author | dim <dim@FreeBSD.org> | 2012-08-11 11:13:48 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-08-11 11:13:48 +0000 |
commit | d3224b8ca5f865af7b35f0443b1128ba4fa6f1b4 (patch) | |
tree | dd9b2d612e350756897aa331995735959d05ecf5 /lib/msun/src/e_rem_pio2f.c | |
parent | e70ae9c439dfc7dae667e62f9ae2cffde3818e09 (diff) | |
download | FreeBSD-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_pio2f.c')
-rw-r--r-- | lib/msun/src/e_rem_pio2f.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/msun/src/e_rem_pio2f.c b/lib/msun/src/e_rem_pio2f.c index fb608d1..bd12186 100644 --- a/lib/msun/src/e_rem_pio2f.c +++ b/lib/msun/src/e_rem_pio2f.c @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); /* * invpio2: 53 bits of 2/pi - * pio2_1: first 33 bit of pi/2 + * pio2_1: first 25 bits of pi/2 * pio2_1t: pi/2 - pio2_1 */ @@ -40,10 +40,10 @@ invpio2 = 6.36619772367581382433e-01, /* 0x3FE45F30, 0x6DC9C883 */ pio2_1 = 1.57079631090164184570e+00, /* 0x3FF921FB, 0x50000000 */ pio2_1t = 1.58932547735281966916e-08; /* 0x3E5110b4, 0x611A6263 */ -#ifndef INLINE_REM_PIO2F -extern +#ifdef INLINE_REM_PIO2F +static __inline #endif -__inline int +int __ieee754_rem_pio2f(float x, double *y) { double w,r,fn; |