diff options
author | Philippe Theveny <philippe.theveny@laposte.net> | 2013-12-05 11:59:34 +0000 |
---|---|---|
committer | Philippe Theveny <philippe.theveny@laposte.net> | 2013-12-05 11:59:34 +0000 |
commit | a743ffb9b404734e5e637bb133f26c78e9b1e6f7 (patch) | |
tree | 4af589bf1af986a663ab47ec4feba8dad2f58f1f | |
parent | 798919c313f93acc03081190f30e90e1a10142b3 (diff) | |
download | mpc-git-a743ffb9b404734e5e637bb133f26c78e9b1e6f7.tar.gz |
[tests/] Reduce uniformly the range of random (un)signed long integers for an acceptable testing time on 64-bit processors.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/branches/benchs_tests@1394 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r-- | tests/tgeneric.tpl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/tgeneric.tpl b/tests/tgeneric.tpl index 1b0d752..5d65afb 100644 --- a/tests/tgeneric.tpl +++ b/tests/tgeneric.tpl @@ -239,9 +239,8 @@ random_params (mpc_fun_param_t *params, int base_index = 0; const int start = params->nbout; const int end = start + params->nbin; - const unsigned int int_emax = 63; /* maximum binary exponent for random - integer */ - + const unsigned int int_emax = 42; /* maximum binary exponent for random + integer */ for (i = start; i < end; i++) { @@ -256,7 +255,7 @@ random_params (mpc_fun_param_t *params, test_random_si (¶ms->P[i].si, int_emax, 128); break; case NATIVE_UL: - test_random_si (&si, int_emax, 0); + test_random_si (&si, int_emax, 128); params->P[i].ui = (unsigned long)si; break; |