summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-03-01 00:22:52 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-03-01 00:22:52 +0000
commit8823e9662cae4327256c4fb592a8580dbc5b1852 (patch)
treeddebf00b50f269cffe25b8f1e25a2c2d39a217da
parent750d0a8b371674699cd07d51c35b403b2ac4c7ec (diff)
downloadmpfr-8823e9662cae4327256c4fb592a8580dbc5b1852.tar.gz
[tests/tpow.c] Replaced mpfr_cmp by !mpfr_equal_p for NaN detection.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13739 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tpow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tpow.c b/tests/tpow.c
index d9e681f74..80582d705 100644
--- a/tests/tpow.c
+++ b/tests/tpow.c
@@ -1718,7 +1718,7 @@ static void
check_binary128 (void)
{
mpfr_t x, y, z, t;
-
+
mpfr_init2 (x, 113);
mpfr_init2 (y, 113);
mpfr_init2 (z, 113);
@@ -1732,7 +1732,7 @@ check_binary128 (void)
mpfr_pow (z, x, y, MPFR_RNDN);
/* x^y ~ 3.48e-4003 */
mpfr_set_str (t, "1.16afef53c30899a5c172bb302882p-13296", 16, MPFR_RNDN);
- if (mpfr_cmp (z, t) != 0)
+ if (! mpfr_equal_p (z, t))
{
printf ("Error in check_binary128\n");
printf ("expected "); mpfr_dump (t);
@@ -1746,7 +1746,7 @@ check_binary128 (void)
mpfr_set_str (y, "-1.62e42fefa39ef35793c7673007e5p125", 16, MPFR_RNDN);
mpfr_pow (z, x, y, MPFR_RNDN);
mpfr_set_str (t, "1.fffffffffffffffffffffffff105p16383", 16, MPFR_RNDN);
- if (mpfr_cmp (z, t) != 0)
+ if (! mpfr_equal_p (z, t))
{
printf ("Error in check_binary128 (2)\n");
printf ("expected "); mpfr_dump (t);