]> Savannah Git Hosting - gnulib.git/commitdiff
math tests: Small simplification.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 23:38:11 +0000 (00:38 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 23:40:24 +0000 (00:40 +0100)
* tests/test-exp.h (test_function): Use the same err_bound for
'double' on platforms with sizeof (long double) == sizeof (double)
than on platforms with sizeof (long double) > sizeof (double).
* tests/test-exp2.h (test_function): Likewise.
* tests/test-expm1.h (test_function): Likewise.
* tests/test-log.h (test_function): Likewise.

ChangeLog
tests/test-exp.h
tests/test-exp2.h
tests/test-expm1.h
tests/test-log.h

index 039f54b99abd9bfbbf6e0509480e7ac5588497ef..2deb869ea43ce9a62a41f71a4d32d206123265e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-03-10  Bruno Haible  <bruno@clisp.org>
+
+       math tests: Small simplification.
+       * tests/test-exp.h (test_function): Use the same err_bound for
+       'double' on platforms with sizeof (long double) == sizeof (double)
+       than on platforms with sizeof (long double) > sizeof (double).
+       * tests/test-exp2.h (test_function): Likewise.
+       * tests/test-expm1.h (test_function): Likewise.
+       * tests/test-log.h (test_function): Likewise.
+
 2012-03-10  Bruno Haible  <bruno@clisp.org>
 
        Fix some comments.
index c2609b72db315aec0f7b957f690ea455cde08396..b87c84de3b09584522b64adac5fdcd5c1e640b06 100644 (file)
@@ -33,7 +33,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        /* On FreeBSD/x86 6.4, the 'long double' type really has only 53 bits of
           precision in the compiler but 64 bits of precision at runtime.  See
@@ -62,7 +62,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        L_(2400.0)
 #else
index daec29841e87c7c542e98f7a81bff78d09667347..f34260382dc262d4dc9103f3f4be523d5163ab71 100644 (file)
@@ -73,7 +73,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        /* On FreeBSD/x86 6.4, the 'long double' type really has only 53 bits of
           precision in the compiler but 64 bits of precision at runtime.  See
@@ -102,7 +102,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        L_(2300.0)
 #else
index c73e798b00593d2d5a9dde60ee2fecbcac34372c..4b38494c3d8f934ad9918dcf7651306eab58803e 100644 (file)
@@ -55,7 +55,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        /* On FreeBSD/x86 6.4, the 'long double' type really has only 53 bits of
           precision in the compiler but 64 bits of precision at runtime.  See
@@ -84,7 +84,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        L_(1536.0)
 #else
index 65ae8336414c8dcac1db4c059b7f8cf0143a75a1..76218725bfcb98bb3a2c4b47308efdd5e98d4466 100644 (file)
@@ -43,7 +43,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        /* On FreeBSD/x86 6.4, the 'long double' type really has only 53 bits of
           precision in the compiler but 64 bits of precision at runtime.  See
@@ -72,7 +72,7 @@ test_function (void)
   {
     /* Error bound, in ulps.  */
     const DOUBLE err_bound =
-      (sizeof (DOUBLE) == sizeof (long double) ?
+      (sizeof (DOUBLE) > sizeof (double) ?
 #if defined __i386__ && defined __FreeBSD__
        /* On FreeBSD/x86 6.4, the 'long double' type really has only 53 bits of
           precision in the compiler but 64 bits of precision at runtime.  See