summaryrefslogtreecommitdiff
path: root/tests/tdiv.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-29 22:48:06 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-29 22:48:06 +0000
commit06fde1bd718985d98dcb9bce10942238a09d1f7e (patch)
tree840d1d413027ff765a9a00e09f6dc3998b538f6e /tests/tdiv.c
parentb9a39d56b8812338b4483fcc45a5df0d65993ff9 (diff)
downloadmpfr-06fde1bd718985d98dcb9bce10942238a09d1f7e.tar.gz
[tests] Code simplification and improvement by using SAME_VAL().
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11551 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tdiv.c')
-rw-r--r--tests/tdiv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/tdiv.c b/tests/tdiv.c
index 67ecebd31..9b4988aac 100644
--- a/tests/tdiv.c
+++ b/tests/tdiv.c
@@ -26,8 +26,7 @@ static void
check_equal (mpfr_srcptr a, mpfr_srcptr a2, char *s,
mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t r)
{
- if ((MPFR_IS_NAN (a) && MPFR_IS_NAN (a2)) ||
- mpfr_equal_p (a, a2))
+ if (SAME_VAL (a, a2))
return;
if (r == MPFR_RNDF) /* RNDF might return different values */
return;