summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Theveny <philippe.theveny@laposte.net>2013-12-05 11:59:34 +0000
committerPhilippe Theveny <philippe.theveny@laposte.net>2013-12-05 11:59:34 +0000
commita743ffb9b404734e5e637bb133f26c78e9b1e6f7 (patch)
tree4af589bf1af986a663ab47ec4feba8dad2f58f1f
parent798919c313f93acc03081190f30e90e1a10142b3 (diff)
downloadmpc-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.tpl7
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 (&params->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;