4 extern void abort(void);
6 #define C99_MATH_TESTS(nan, inf, huge, norm1, norm2, norm3, sub, zero, neg) \
8 if (feclearexcept (FE_ALL_EXCEPT) != 0) \
12 if (fpclassify (nan) != FP_NAN) \
15 if (fpclassify (inf) != FP_INFINITE) \
18 if (fpclassify (huge) != FP_INFINITE) \
21 if (fpclassify (norm1) != FP_NORMAL) \
24 if (fpclassify (norm2) != FP_NORMAL) \
27 if (fpclassify (norm3) != FP_NORMAL) \
30 if (fpclassify (sub) != FP_SUBNORMAL) \
33 if (fpclassify (zero) != FP_ZERO) \
93 if (isfinite (huge)) \
96 if (!isfinite (norm1)) \
99 if (!isfinite (norm2)) \
102 if (!isfinite (norm3)) \
105 if (!isfinite (sub)) \
108 if (!isfinite (zero)) \
112 if (isnormal (nan)) \
115 if (isnormal (inf)) \
118 if (isnormal (huge)) \
121 if (!isnormal (norm1)) \
124 if (!isnormal (norm2)) \
127 if (!isnormal (norm3)) \
130 if (isnormal (sub)) \
133 if (isnormal (zero)) \
137 if (!!signbit (nan) != neg) \
140 if (!!signbit (inf) != neg) \
143 if (!!signbit (huge) != neg) \
146 if (!!signbit (norm1) != neg) \
149 if (!!signbit (norm2) != neg) \
152 if (!!signbit (norm3) != neg) \
155 if (!!signbit (sub) != neg) \
158 if (!!signbit (zero) != neg) \
164 if (!isless ((inf), (norm1))) \
167 if (!isless ((inf), (norm2))) \
170 if (!isless ((inf), (norm3))) \
173 if (!islessequal ((inf), (huge))) \
176 if (!isgreater ((norm1), (inf))) \
179 if (!isgreater ((norm2), (inf))) \
182 if (!isgreater ((norm3), (inf))) \
185 if (!isgreaterequal ((huge), (inf))) \
190 if (!isgreater ((inf), (norm1))) \
193 if (!isgreater ((inf), (norm2))) \
196 if (!isgreater ((inf), (norm3))) \
199 if (!isgreaterequal ((inf), (huge))) \
202 if (!isless ((norm1), (inf))) \
205 if (!isless ((norm2), (inf))) \
208 if (!isless ((norm3), (inf))) \
211 if (!islessequal ((huge), (inf))) \
215 if (!islessgreater ((inf), (norm1))) \
218 if (!islessgreater ((inf), (norm2))) \
221 if (!islessgreater ((inf), (norm3))) \
224 if (!isunordered ((nan), (norm1))) \
227 if (!isunordered ((nan), (norm2))) \
230 if (!isunordered ((nan), (norm3))) \
234 if (fetestexcept (FE_ALL_EXCEPT) != 0) \