diff options
Diffstat (limited to 'math/s_ctanhl.c')
-rw-r--r-- | math/s_ctanhl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/math/s_ctanhl.c b/math/s_ctanhl.c index 016ebc5ce4..fa11db7ed4 100644 --- a/math/s_ctanhl.c +++ b/math/s_ctanhl.c @@ -23,6 +23,13 @@ #include <math_private.h> #include <float.h> +/* To avoid spurious underflows, use this definition to treat IBM long + double as approximating an IEEE-style format. */ +#if LDBL_MANT_DIG == 106 +# undef LDBL_EPSILON +# define LDBL_EPSILON 0x1p-106L +#endif + __complex__ long double __ctanhl (__complex__ long double x) { |