Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/math/atanhl.c')
-rw-r--r--winsup/cygwin/math/atanhl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/math/atanhl.c b/winsup/cygwin/math/atanhl.c
index 59eb1bd91..a9b8e24b9 100644
--- a/winsup/cygwin/math/atanhl.c
+++ b/winsup/cygwin/math/atanhl.c
@@ -26,7 +26,7 @@ long double atanhl (long double x)
}
/* Rearrange formula to avoid precision loss for small x.
atanh(x) = 0.5 * log ((1.0 + x)/(1.0 - x))
- = 0.5 * log1p ((1.0 + x)/(1.0 - x) - 1.0)
+ = 0.5 * log1p ((1.0 + x)/(1.0 - x) - 1.0)
= 0.5 * log1p ((1.0 + x - 1.0 + x) /(1.0 - x))
= 0.5 * log1p ((2.0 * x ) / (1.0 - x)) */
z = 0.5L * __fast_log1pl ((z + z) / (1.0L - z));