* gcc.dg/torture/builtin-explog-1.c (PREC): Make it the same
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 2004 02:57:05 +0000 (02:57 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 2004 02:57:05 +0000 (02:57 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-explog-1.c

index 2f5a934..07317d5 100644 (file)
@@ -1,3 +1,10 @@
+2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * 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  <ghazi@caip.rutgers.edu>
 
        * gcc.dg/builtins-config.h: Use underscore macro style for __sun
index 352f5b0..847d69f 100644 (file)
 #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); \