diff options
-rw-r--r-- | src/set_float128.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/set_float128.c b/src/set_float128.c index 98e47449b..fb3a8402f 100644 --- a/src/set_float128.c +++ b/src/set_float128.c @@ -44,6 +44,10 @@ mpfr_set_float128 (mpfr_ptr r, __float128 d, mpfr_rnd_t rnd_mode) } /* Check for INF */ + /* FIXME: The code below generates a divide-by-zero exception, thus + will fail if this exception is trapped. Replace it by > and < + comparisons with the maximum positive (resp. negative) finite + binary128 numbers? */ if (MPFR_UNLIKELY (d == ((__float128) 1.0 / (__float128) 0.0))) { mpfr_set_inf (r, 1); |