Lines Matching defs:error

8 #define error(...) print(__FILE__, __LINE__, __VA_ARGS__)
54 error("feraiseexcept(%s) returned %d\n", te[i].name, r);
65 error("feraiseexcept(%s) want %d got %d\n",
72 error("feraisexcept(FE_ALL_EXCEPT) failed\n");
75 error("fegetenv(&env) = %d\n", r);
78 error("fetestexcept failed: got 0x%x, want 0x%x (FE_ALL_ECXEPT)\n", r, FE_ALL_EXCEPT);
81 error("fesetenv(FE_DFL_ENV) = %d\n", r);
84 error("fesetenv(FE_DFL_ENV) did not clear exceptions: 0x%x\n", r);
87 error("fesetenv(&env) = %d\n", r);
90 error("fesetenv(&env) did not restore exceptions: 0x%x\n", r);
119 error("%s (%d) < 0\n", tr[i].name, tr[i].i);
122 error("%s (%d) == %s (%d)\n",
129 error("fesetround(%s) = %d\n", tr[i].name, r);
132 error("fegetround() = 0x%x, wanted 0x%x (%s)\n", r, tr[i].i, tr[i].name);
138 error("fesetround(FE_UPWARD) failed\n");
142 error("fegetenv(&env) = %d\n", r);
146 error("fesetenv(FE_DFL_ENV) = %d\n", r);
149 error("fesetenv(FE_DFL_ENV) did not set FE_TONEAREST (0x%x), got 0x%x\n", FE_TONEAREST, r);
152 error("fesetenv(FE_DFL_ENV) did not set FE_TONEAREST, arithmetics rounds upward\n");
155 error("fesetenv(FE_DFL_ENV) did not set FE_TONEAREST, arithmetics rounds downward or tozero\n");
158 error("fesetenv(&env) = %d\n", r);
161 error("fesetenv(&env) did not restore 0x%x, got 0x%x\n", i, r);
165 error("fesetenv did not restore upward rounding\n");
244 error("feclearexcept(FE_ALL_EXCEPT) failed\n");
247 error("fetestexcept(-1) should return 0 when all exceptions are cleared, got %d\n", r);
250 error("feraiseexcept returned non-zero for non-supported exceptions: %d\n", r);
253 error("feclearexcept returned non-zero for non-supported exceptions: %d\n", r);
256 error("fesetround should fail on invalid rounding mode\n");
259 error("fegetexceptflag returned non-zero for non-supported exceptions: %d\n", r);
262 error("fegetexceptflag(0) failed\n");
265 error("fesetexceptflag returned non-zero fir non-supported exceptions: %d\n", r);