summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUGS5
-rw-r--r--hypot.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/BUGS b/BUGS
index 5417a82b1..742915ed4 100644
--- a/BUGS
+++ b/BUGS
@@ -37,6 +37,11 @@ Known bugs:
* Some functions do not use MPFR_SAVE_EXPO_* macros, thus do not behave
correctly in a reduced exponent range.
+* Function hypot gives incorrect result when on the one hand the difference
+ between parameters' exponents is near 2*MPFR_EMAX_MAX and on the other hand
+ the output precision or the precision of the parameter with greatest
+ absolute value is greater than 2*MPFR_EMAX_MAX-4.
+
Potential bugs:
* Possible incorrect results due to internal underflow, which can lead to
diff --git a/hypot.c b/hypot.c
index 0029a848a..782be4e8c 100644
--- a/hypot.c
+++ b/hypot.c
@@ -121,7 +121,7 @@ mpfr_hypot (mpfr_ptr z, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd_mode)
/* General case */
/* FIXME: the following algorithm is correct only for
- diff_exp <= MPFR_EMAX_DEFAULT - 2 */
+ diff_exp <= MPFR_EMAX_MAX - 2 */
N = MAX (MPFR_PREC (x), MPFR_PREC (y));