From: Kazu Hirata Date: Thu, 4 Mar 2004 02:57:05 +0000 (+0000) Subject: builtin-explog-1.c (PREC): Make it the same as PRECF if sizeof (float) > sizeof ... X-Git-Tag: releases/gcc-4.0.0~9643 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ae3b78cf089ef50976a7f5e8811fb085f931387;p=thirdparty%2Fgcc.git builtin-explog-1.c (PREC): Make it the same as PRECF if sizeof (float) > sizeof (double). * gcc.dg/torture/builtin-explog-1.c (PREC): Make it the same as PRECF if sizeof (float) > sizeof (double). (PRECL): Make it the same as PRECF if sizeof (float) > sizeof (long double). From-SVN: r78881 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f5a9345911c..07317d5a1d73 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2004-03-03 Kazu Hirata + + * gcc.dg/torture/builtin-explog-1.c (PREC): Make it the same + as PRECF if sizeof (float) > sizeof (double). + (PRECL): Make it the same as PRECF if + sizeof (float) > sizeof (long double). + 2004-03-03 Kaveh R. Ghazi * gcc.dg/builtins-config.h: Use underscore macro style for __sun diff --git a/gcc/testsuite/gcc.dg/torture/builtin-explog-1.c b/gcc/testsuite/gcc.dg/torture/builtin-explog-1.c index 352f5b037b15..847d69f819b4 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-explog-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-explog-1.c @@ -13,9 +13,10 @@ #define M_EF 2.7182818284590452353602874713526624977572470936999595749669676277241F #define M_EL 2.7182818284590452353602874713526624977572470936999595749669676277241L /* Precision for comparison tests. */ -#define PREC 0.0000001 +#define PREC (sizeof (float) < sizeof (double) ? 0.0000001 : PRECF) #define PRECF 0.0001F -#define PRECL 0.0000000000001L +#define PRECL (sizeof (float) < sizeof (long double) \ + ? 0.0000000000001L : PRECF) #define PROTOTYPE(FN) extern double FN(double); extern float FN##f(float); \ extern long double FN##l(long double); #define PROTOTYPE2(FN) extern double FN(double, double); \