-/* { dg-do run { target *-*-solaris2.1[0-9]* } } */\r
-/* { dg-options "-std=c99 -O" } */\r
-\r
-#include <math.h>\r
-#include "c99-math.h"\r
-\r
-int main(void)\r
-{\r
- double nan = NAN;\r
- double inf = INFINITY;\r
- double huge = HUGE_VAL;\r
- double norm = __DBL_MIN__;\r
- double zero = 0.0;\r
-\r
- C99_MATH_TESTS (nan, inf, huge, norm, zero)\r
-\r
- return 0;\r
-}\r
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
+/* { dg-options "-std=c99 -O" } */
+
+#include <math.h>
+#include "c99-math.h"
+
+int main(void)
+{
+ double nan = NAN;
+ double inf = INFINITY;
+ double huge = HUGE_VAL;
+ double norm = __DBL_MIN__;
+ double zero = 0.0;
+
+ C99_MATH_TESTS (nan, inf, huge, norm, zero)
+
+ return 0;
+}
-/* { dg-do run { target *-*-solaris2.1[0-9]* } } */\r
-/* { dg-options "-std=c99 -O" } */\r
-\r
-#include <math.h>\r
-#include "c99-math.h"\r
-\r
-int main(void)\r
-{\r
- float nan = NAN;\r
- float inf = INFINITY;\r
- float huge = HUGE_VALF;\r
- float norm = __FLT_MIN__;\r
- float zero = 0.0f;\r
-\r
- C99_MATH_TESTS (nan, inf, huge, norm, zero)\r
-\r
- return 0;\r
-}\r
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
+/* { dg-options "-std=c99 -O" } */
+
+#include <math.h>
+#include "c99-math.h"
+
+int main(void)
+{
+ float nan = NAN;
+ float inf = INFINITY;
+ float huge = HUGE_VALF;
+ float norm = __FLT_MIN__;
+ float zero = 0.0f;
+
+ C99_MATH_TESTS (nan, inf, huge, norm, zero)
+
+ return 0;
+}
-/* { dg-do run { target *-*-solaris2.1[0-9]* } } */\r
-/* { dg-options "-std=c99 -O" } */\r
-\r
-#include <math.h>\r
-#include "c99-math.h"\r
-\r
-int main(void)\r
-{\r
- long double nan = NAN;\r
- long double inf = INFINITY;\r
- long double huge = HUGE_VALL;\r
- long double norm = __LDBL_MIN__;\r
- long double zero = 0.0l;\r
-\r
- C99_MATH_TESTS (nan, inf, huge, norm, zero)\r
-\r
- return 0;\r
-}\r
+/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
+/* { dg-options "-std=c99 -O" } */
+
+#include <math.h>
+#include "c99-math.h"
+
+int main(void)
+{
+ long double nan = NAN;
+ long double inf = INFINITY;
+ long double huge = HUGE_VALL;
+ long double norm = __LDBL_MIN__;
+ long double zero = 0.0l;
+
+ C99_MATH_TESTS (nan, inf, huge, norm, zero)
+
+ return 0;
+}
-#include <math.h>\r
-\r
-extern void abort(void);\r
-\r
-#define C99_MATH_TESTS(nan, inf, huge, norm, zero) \\r
-{ \\r
- if (fpclassify (nan) != FP_NAN) \\r
- abort (); \\r
- \\r
- if (fpclassify (inf) != FP_INFINITE) \\r
- abort (); \\r
- \\r
- if (fpclassify (huge) != FP_INFINITE) \\r
- abort (); \\r
- \\r
- if (fpclassify (norm) != FP_NORMAL) \\r
- abort (); \\r
- \\r
- if (fpclassify (zero) != FP_ZERO) \\r
- abort (); \\r
- \\r
- \\r
- if (!isnan (nan)) \\r
- abort (); \\r
- \\r
- if (isnan (inf)) \\r
- abort (); \\r
- \\r
- if (isnan (huge)) \\r
- abort (); \\r
- \\r
- if (isnan (norm)) \\r
- abort (); \\r
- \\r
- if (isnan (zero)) \\r
- abort (); \\r
- \\r
- \\r
- if (isinf (nan)) \\r
- abort (); \\r
- \\r
- if (!isinf (inf)) \\r
- abort (); \\r
- \\r
- if (!isinf (huge)) \\r
- abort (); \\r
- \\r
- if (isnan (norm)) \\r
- abort (); \\r
- \\r
- if (isinf (zero)) \\r
- abort (); \\r
- \\r
- \\r
- if (isfinite (nan)) \\r
- abort (); \\r
- \\r
- if (isfinite (inf)) \\r
- abort (); \\r
- \\r
- if (isfinite (huge)) \\r
- abort (); \\r
- \\r
- if (!isfinite (norm)) \\r
- abort (); \\r
- \\r
- if (!isfinite (zero)) \\r
- abort (); \\r
- \\r
- \\r
- if (isnormal (nan)) \\r
- abort (); \\r
- \\r
- if (isnormal (inf)) \\r
- abort (); \\r
- \\r
- if (isnormal (huge)) \\r
- abort (); \\r
- \\r
- if (!isnormal (norm)) \\r
- abort (); \\r
- \\r
- if (isnormal (zero)) \\r
- abort (); \\r
- \\r
- \\r
- if (signbit (norm)) \\r
- abort (); \\r
- \\r
- if (!signbit (-(norm))) \\r
- abort (); \\r
- \\r
- \\r
- if (!isgreater ((inf), (norm))) \\r
- abort (); \\r
- \\r
- if (!isgreaterequal ((inf), (huge))) \\r
- abort (); \\r
- \\r
- if (!isless ((norm), (inf))) \\r
- abort (); \\r
- \\r
- if (!islessequal ((huge), (inf))) \\r
- abort (); \\r
- \\r
- if (!islessgreater ((inf), (norm))) \\r
- abort (); \\r
- \\r
- if (!isunordered ((nan), (norm))) \\r
- abort (); \\r
-}\r
+#include <math.h>
+
+extern void abort(void);
+
+#define C99_MATH_TESTS(nan, inf, huge, norm, zero) \
+{ \
+ if (fpclassify (nan) != FP_NAN) \
+ abort (); \
+ \
+ if (fpclassify (inf) != FP_INFINITE) \
+ abort (); \
+ \
+ if (fpclassify (huge) != FP_INFINITE) \
+ abort (); \
+ \
+ if (fpclassify (norm) != FP_NORMAL) \
+ abort (); \
+ \
+ if (fpclassify (zero) != FP_ZERO) \
+ abort (); \
+ \
+ \
+ if (!isnan (nan)) \
+ abort (); \
+ \
+ if (isnan (inf)) \
+ abort (); \
+ \
+ if (isnan (huge)) \
+ abort (); \
+ \
+ if (isnan (norm)) \
+ abort (); \
+ \
+ if (isnan (zero)) \
+ abort (); \
+ \
+ \
+ if (isinf (nan)) \
+ abort (); \
+ \
+ if (!isinf (inf)) \
+ abort (); \
+ \
+ if (!isinf (huge)) \
+ abort (); \
+ \
+ if (isnan (norm)) \
+ abort (); \
+ \
+ if (isinf (zero)) \
+ abort (); \
+ \
+ \
+ if (isfinite (nan)) \
+ abort (); \
+ \
+ if (isfinite (inf)) \
+ abort (); \
+ \
+ if (isfinite (huge)) \
+ abort (); \
+ \
+ if (!isfinite (norm)) \
+ abort (); \
+ \
+ if (!isfinite (zero)) \
+ abort (); \
+ \
+ \
+ if (isnormal (nan)) \
+ abort (); \
+ \
+ if (isnormal (inf)) \
+ abort (); \
+ \
+ if (isnormal (huge)) \
+ abort (); \
+ \
+ if (!isnormal (norm)) \
+ abort (); \
+ \
+ if (isnormal (zero)) \
+ abort (); \
+ \
+ \
+ if (signbit (norm)) \
+ abort (); \
+ \
+ if (!signbit (-(norm))) \
+ abort (); \
+ \
+ \
+ if (!isgreater ((inf), (norm))) \
+ abort (); \
+ \
+ if (!isgreaterequal ((inf), (huge))) \
+ abort (); \
+ \
+ if (!isless ((norm), (inf))) \
+ abort (); \
+ \
+ if (!islessequal ((huge), (inf))) \
+ abort (); \
+ \
+ if (!islessgreater ((inf), (norm))) \
+ abort (); \
+ \
+ if (!isunordered ((nan), (norm))) \
+ abort (); \
+}