+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.
{
/* 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
{
/* 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
{
/* 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
{
/* 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
{
/* 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
{
/* 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
{
/* 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
{
/* 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