From: kazu Date: Thu, 4 Mar 2004 02:57:05 +0000 (+0000) Subject: * gcc.dg/torture/builtin-explog-1.c (PREC): Make it the same X-Git-Tag: upstream/4.9.2~72551 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed63057bb553095d31967eb597a2dbe7af9c0273;p=platform%2Fupstream%2Flinaro-gcc.git * 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). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78881 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f5a934..07317d5 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 352f5b0..847d69f 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); \