summaryrefslogtreecommitdiff
path: root/tests/tmul.c
diff options
context:
space:
mode:
authorPaul Zimmermann <paul.zimmermann@inria.fr>2008-11-14 16:42:39 +0000
committerPaul Zimmermann <paul.zimmermann@inria.fr>2008-11-14 16:42:39 +0000
commitf5c476c2b90143bad95fc4160bba0a45afd40e3d (patch)
tree3b82c22553e25473423ba5e50a171d1d82b1055b /tests/tmul.c
parentcd657f609633bfaaca966eaa62708e5420f0cbb2 (diff)
downloadmpc-git-f5c476c2b90143bad95fc4160bba0a45afd40e3d.tar.gz
[mul.c] fixed bug found by Philippe (20081114)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/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);