summaryrefslogtreecommitdiff
path: root/tests/tpow.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-11-04 18:39:52 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-11-04 18:39:52 +0000
commit5ad0bccecc2c0aafdc23571a491fccc31171c22c (patch)
treefbb979252a636e9fc3215e15e12be49ca6d35a95 /tests/tpow.c
parent18e9d42b59925987d8128096c4a7ea6d49721862 (diff)
downloadmpc-5ad0bccecc2c0aafdc23571a491fccc31171c22c.tar.gz
replaced MPC_RE by mpc_realref and MPC_IM by mpc_imagref everywhere
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1112 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tpow.c')
-rw-r--r--tests/tpow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tpow.c b/tests/tpow.c
index 43f89f1..3592209 100644
--- a/tests/tpow.c
+++ b/tests/tpow.c
@@ -34,13 +34,13 @@ reuse_bug (void)
mpc_init2 (y, prec);
mpc_init2 (z, prec);
- mpfr_set_ui (MPC_RE (x), 0ul, GMP_RNDN);
- mpfr_set_ui_2exp (MPC_IM (x), 3ul, -2, GMP_RNDN);
+ mpfr_set_ui (mpc_realref (x), 0ul, GMP_RNDN);
+ mpfr_set_ui_2exp (mpc_imagref (x), 3ul, -2, GMP_RNDN);
mpc_set_ui (y, 8ul, MPC_RNDNN);
mpc_pow (z, x, y, MPC_RNDNN);
mpc_pow (y, x, y, MPC_RNDNN);
- if (mpfr_signbit (MPC_IM (y)) != mpfr_signbit (MPC_IM (z)))
+ if (mpfr_signbit (mpc_imagref (y)) != mpfr_signbit (mpc_imagref (z)))
{
printf ("Error: regression, reuse_bug reproduced\n");
exit (1);