X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-log.h;h=76218725bfcb98bb3a2c4b47308efdd5e98d4466;hb=a27cef6cc21820b092cabf44ee1caec3c484935d;hp=32b596ebc384877ddedc06ab1fca85ec2329c8d3;hpb=7e105c7957aab59bbf060758c2b3e285feaea229;p=gnulib.git diff --git a/tests/test-log.h b/tests/test-log.h index 32b596ebc..76218725b 100644 --- a/tests/test-log.h +++ b/tests/test-log.h @@ -29,6 +29,7 @@ test_function (void) * (DOUBLE) (1U << ((MANT_DIG - 1 + 3) / 5)) * (DOUBLE) (1U << ((MANT_DIG - 1 + 4) / 5)); + /* Pole. */ { DOUBLE z = LOG (L_(0.0)); ASSERT (z == - HUGEVAL); @@ -42,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 @@ -71,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