log10* tests: Speed up.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Apr 2012 01:04:33 +0000 (03:04 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Apr 2012 01:05:09 +0000 (03:05 +0200)
* tests/test-log10.h (test_function): Reduce amount of random numbers
to test.

ChangeLog
tests/test-log10.h

index 3205f7c..729e245 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-04-02  Bruno Haible  <bruno@clisp.org>
+
+       log10* tests: Speed up.
+       * tests/test-log10.h (test_function): Reduce amount of random numbers
+       to test.
+
 2012-04-01  Bruno Haible  <bruno@clisp.org>
 
        logf-ieee: Fix test whether logf works.
index fd0c918..6e6af42 100644 (file)
@@ -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);