]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
builtin-explog-1.c (PREC): Make it the same as PRECF if sizeof (float) > sizeof ...
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 4 Mar 2004 02:57:05 +0000 (02:57 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 4 Mar 2004 02:57:05 +0000 (02:57 +0000)
* 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

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

index 2f5a9345911c4eb4b9de7d320703db96b58d8073..07317d5a1d73bf2a56263cece21def4b674d023c 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 352f5b037b15a7121fd5b8702316b34896676360..847d69f819b4e762e4bc4a0f5d7a722c5834410b 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); \