diff options
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/asinh.c')
-rw-r--r-- | Build/source/libs/mpfr/mpfr-src/src/asinh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/asinh.c b/Build/source/libs/mpfr/mpfr-src/src/asinh.c index 0f78bfd2cab..10aa23fc77e 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/asinh.c +++ b/Build/source/libs/mpfr/mpfr-src/src/asinh.c @@ -1,6 +1,6 @@ /* mpfr_asinh -- inverse hyperbolic sine -Copyright 2001-2019 Free Software Foundation, Inc. +Copyright 2001-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -89,7 +89,7 @@ mpfr_asinh (mpfr_ptr y, mpfr_srcptr x, mpfr_rnd_t rnd_mode) for (;;) { /* compute asinh */ - mpfr_mul (t, x, x, MPFR_RNDD); /* x^2 */ + mpfr_sqr (t, x, MPFR_RNDD); /* x^2 */ mpfr_add_ui (t, t, 1, MPFR_RNDD); /* x^2+1 */ mpfr_sqrt (t, t, MPFR_RNDN); /* sqrt(x^2+1) */ (neg ? mpfr_sub : mpfr_add) (t, t, x, MPFR_RNDN); /* sqrt(x^2+1)+x */ |