diff options
Diffstat (limited to 'lib/msun/src/s_tanh.c')
-rw-r--r-- | lib/msun/src/s_tanh.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/msun/src/s_tanh.c b/lib/msun/src/s_tanh.c index 96e3565..6d26c69 100644 --- a/lib/msun/src/s_tanh.c +++ b/lib/msun/src/s_tanh.c @@ -37,10 +37,13 @@ __FBSDID("$FreeBSD$"); * only tanh(0)=0 is exact for finite argument. */ +#include <float.h> + #include "math.h" #include "math_private.h" -static const double one = 1.0, two = 2.0, tiny = 1.0e-300, huge = 1.0e300; +static const volatile double tiny = 1.0e-300; +static const double one = 1.0, two = 2.0, huge = 1.0e300; double tanh(double x) @@ -75,3 +78,7 @@ tanh(double x) } return (jx>=0)? z: -z; } + +#if (LDBL_MANT_DIG == 53) +__weak_reference(tanh, tanhl); +#endif |