diff options
author | Bruno Haible <bruno@clisp.org> | 2012-04-03 03:04:33 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-04-03 03:05:09 +0200 |
commit | cd2e4d4bfbf4bfbc8d2155969a63605759f8f243 (patch) | |
tree | dc7b1f2122e8f4128634da4b340a4b991df7dff2 /tests | |
parent | 613308e52eeb58335fc828b2e7229b066ded34c9 (diff) | |
download | gnulib-cd2e4d4bfbf4bfbc8d2155969a63605759f8f243.tar.gz |
log10* tests: Speed up.
* tests/test-log10.h (test_function): Reduce amount of random numbers
to test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-log10.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-log10.h b/tests/test-log10.h index fd0c918cf9..6e6af4240f 100644 --- a/tests/test-log10.h +++ b/tests/test-log10.h @@ -85,8 +85,8 @@ test_function (void) #endif : L_(5.0)); - for (i = 0; i < SIZEOF (RANDOM); i++) - for (j = 0; j < SIZEOF (RANDOM); j++) + for (i = 0; i < SIZEOF (RANDOM) / 5; i++) + for (j = 0; j < SIZEOF (RANDOM) / 5; j++) { DOUBLE x = L_(17.0) / (L_(16.0) - L_(15.0) * RANDOM[i]) - L_(1.0); DOUBLE y = L_(17.0) / (L_(16.0) - L_(15.0) * RANDOM[j]) - L_(1.0); |