summaryrefslogtreecommitdiff
path: root/sqrt_ui.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-07-25 15:43:49 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2002-07-25 15:43:49 +0000
commit609684b566743c6a0426b3190736a1fd7568a864 (patch)
tree6d156cd58d229541f586d1f795e32e40ea987fef /sqrt_ui.c
parent55f6a6d0a69136d56f30a6da63d5a539320b9d53 (diff)
downloadmpfr-609684b566743c6a0426b3190736a1fd7568a864.tar.gz
Function mpfr_check_range now propagates the inexact ternary value.
Function mpfr_restore_emin_emax OR's the saved flags with the current flags, as this is more useful in general. Macro MPFR_RESTORE_RET removed (no longer useful). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1999 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sqrt_ui.c')
-rw-r--r--sqrt_ui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sqrt_ui.c b/sqrt_ui.c
index 92c11b053..18f750fda 100644
--- a/sqrt_ui.c
+++ b/sqrt_ui.c
@@ -43,7 +43,8 @@ mpfr_sqrt_ui (mpfr_ptr r, unsigned long u, mp_rnd_t rnd_mode)
mpfr_save_emin_emax();
inex = mpfr_sqrt(r, uu, rnd_mode);
- MPFR_RESTORE_RET(inex, r, rnd_mode);
+ mpfr_restore_emin_emax();
+ return mpfr_check_range(r, inex, rnd_mode);
}
else /* sqrt(0) = 0 */
{