summaryrefslogtreecommitdiff
path: root/tests/tmul.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-11-14 16:42:39 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-11-14 16:42:39 +0000
commit756d10a4d0f41b1b4019d2ed500aff03af553613 (patch)
tree3b82c22553e25473423ba5e50a171d1d82b1055b /tests/tmul.c
parent97d123de04cf2504929cfe15d044ca262d04db00 (diff)
downloadmpc-756d10a4d0f41b1b4019d2ed500aff03af553613.tar.gz
[mul.c] fixed bug found by Philippe (20081114)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@312 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tmul.c')
-rw-r--r--tests/tmul.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tmul.c b/tests/tmul.c
index 8af2f0a..43342c4 100644
--- a/tests/tmul.c
+++ b/tests/tmul.c
@@ -126,6 +126,11 @@ check_regular (void)
mpc_set_prec (y, 7);
mpfr_set_str (MPC_RE (x), "0xB4p+733", 16, GMP_RNDN);
mpfr_set_str (MPC_IM (x), "0x90p+244", 16, GMP_RNDN);
+ mpfr_set_str (MPC_RE (y), "0xECp-146", 16, GMP_RNDN);
+ mpfr_set_str (MPC_IM (y), "0xACp-471", 16, GMP_RNDN);
+ cmpmul (x, y, MPC_RNDNN);
+ mpfr_set_str (MPC_RE (x), "0xB4p+733", 16, GMP_RNDN);
+ mpfr_set_str (MPC_IM (x), "0x90p+244", 16, GMP_RNDN);
mpfr_set_str (MPC_RE (y), "0xACp-471", 16, GMP_RNDN);
mpfr_set_str (MPC_IM (y), "-0xECp-146", 16, GMP_RNDN);
cmpmul (x, y, MPC_RNDNN);