summaryrefslogtreecommitdiff
path: root/tests/tmul.c
diff options
context:
space:
mode:
authorAndreas Enge <andreas.enge@inria.fr>2011-02-15 19:24:18 +0000
committerAndreas Enge <andreas.enge@inria.fr>2011-02-15 19:24:18 +0000
commit5d4a45930ab308ccdc93e623cfd743eb76073ecf (patch)
treec5e194cd5cbfefe670a217987a48ef8efcff4f0a /tests/tmul.c
parent1b085aafb19f6a39fc77cf74335285f803c93857 (diff)
downloadmpc-git-5d4a45930ab308ccdc93e623cfd743eb76073ecf.tar.gz
tmul.c, mul.dat: moved bug case to data file
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@922 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tmul.c')
-rw-r--r--tests/tmul.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/tests/tmul.c b/tests/tmul.c
index f5e0155..56dda37 100644
--- a/tests/tmul.c
+++ b/tests/tmul.c
@@ -199,35 +199,11 @@ timemul (void)
}
#endif
-/* bug reported by Emmanuel Thome */
-static void
-bug20110214 (void)
-{
- mpc_t u, v, w;
- mpz_t z;
-
- mpc_init2 (u, 3000);
- mpc_init2 (v, 3000);
- mpc_init2 (w, 3000);
- mpz_init (z);
- mpz_ui_pow_ui (z, 47, 541);
- mpfr_set_z_2exp (mpc_realref (u), z, 500000000, GMP_RNDN);
- mpz_ui_pow_ui (z, 23, 664);
- mpfr_set_z_2exp (mpc_imagref (u), z, 500000000, GMP_RNDN);
- mpz_ui_pow_ui (z, 31, 606);
- mpfr_set_z_2exp (mpc_realref (v), z, 900000000, GMP_RNDN);
- mpz_ui_pow_ui (z, 101, 451);
- mpfr_set_z_2exp (mpc_imagref (v), z, 900000000, GMP_RNDN);
- mpc_mul (w, u, v, MPC_RNDNN);
- mpc_clear (u);
- mpc_clear (v);
- mpc_clear (w);
-}
int
main (void)
{
- DECL_FUNC (C_CC, f, mpc_mul);
+ DECL_FUNC (C_CC, f, mpc_mul_naive);
f.properties = FUNC_PROP_SYMETRIC;
test_start ();
@@ -236,7 +212,6 @@ main (void)
timemul ();
#endif
- bug20110214 ();
check_regular ();
data_check (f, "mul.dat");