X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Ffunctional%2Ftgmath.c;h=dcbc640395674361a14b9cb6d77b04d0595c789e;hp=8cc2c3e555d91f64e41c4df80d330b177bb5a50e;hb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;hpb=b775d19f7ff58da3fe009d48742068cc92a274f2 diff --git a/src/functional/tgmath.c b/src/functional/tgmath.c index 8cc2c3e..dcbc640 100644 --- a/src/functional/tgmath.c +++ b/src/functional/tgmath.c @@ -7,33 +7,33 @@ int main(void) i = lrint(123456789.1f) & 0x7fffffff; if (i != 123456792) - error("lrint(123456789.1f)&0x7fffffff want 123456792 got %ld\n", i); + t_error("lrint(123456789.1f)&0x7fffffff want 123456792 got %ld\n", i); i = lrint(123456789.1) & 0x7fffffff; if (i != 123456789) - error("lrint(123456789.1)&0x7fffffff want 123456789 got %ld\n", i); + t_error("lrint(123456789.1)&0x7fffffff want 123456789 got %ld\n", i); if (sqrt(2.0f) != 1.41421353816986083984375) - error("sqrt(2.0f) want 0x1.6a09e6p+0 got %a\n", sqrt(2.0f)); + t_error("sqrt(2.0f) want 0x1.6a09e6p+0 got %a\n", sqrt(2.0f)); if (sqrt(2.0) != 1.414213562373095145474621858738828450441360) - error("sqrt(2.0) want 0x1.6a09e667f3bcdp+0 got %a\n", sqrt(2.0)); + t_error("sqrt(2.0) want 0x1.6a09e667f3bcdp+0 got %a\n", sqrt(2.0)); if (sqrt(2) != 1.414213562373095145474621858738828450441360) - error("sqrt(2) want 0x1.6a09e667f3bcdp+0 got %a\n", sqrt(2.0)); + t_error("sqrt(2) want 0x1.6a09e667f3bcdp+0 got %a\n", sqrt(2.0)); if (sizeof pow(sqrt(8),0.5f) != sizeof(double)) - error("sizeof pow(sqrt(8),0.5f) want %d got %d\n", (int)sizeof(double), (int)sizeof pow(sqrt(8),0.5f)); + t_error("sizeof pow(sqrt(8),0.5f) want %d got %d\n", (int)sizeof(double), (int)sizeof pow(sqrt(8),0.5f)); if (sizeof pow(2.0,0.5) != sizeof(double)) - error("sizeof pow(2.0,0.5) want %d got %d\n", (int)sizeof(double), (int)sizeof pow(2.0,0.5)); + t_error("sizeof pow(2.0,0.5) want %d got %d\n", (int)sizeof(double), (int)sizeof pow(2.0,0.5)); if (sizeof pow(2.0f,0.5f) != sizeof(float)) - error("sizeof pow(2.0f,0.5f) want %d got %d\n", (int)sizeof(float), (int)sizeof pow(2.0f,0.5f)); + t_error("sizeof pow(2.0f,0.5f) want %d got %d\n", (int)sizeof(float), (int)sizeof pow(2.0f,0.5f)); if (sizeof pow(2.0,0.5+0*I) != sizeof(double complex)) - error("sizeof pow(2.0,0.5+0*I) want %d got %d\n", (int)sizeof(double complex), (int)sizeof pow(2.0,0.5+0*I)); + t_error("sizeof pow(2.0,0.5+0*I) want %d got %d\n", (int)sizeof(double complex), (int)sizeof pow(2.0,0.5+0*I)); if (pow(2.0,0.5) != 1.414213562373095145474621858738828450441360) - error("pow(2.0,0.5) want 0x1.6a09e667f3bcdp+0 got %a\n", pow(2.0,0.5)); + t_error("pow(2.0,0.5) want 0x1.6a09e667f3bcdp+0 got %a\n", pow(2.0,0.5)); if (pow(2,0.5) != 1.414213562373095145474621858738828450441360) - error("pow(2,0.5) want 0x1.6a09e667f3bcdp+0 got %a\n", pow(2,0.5)); + t_error("pow(2,0.5) want 0x1.6a09e667f3bcdp+0 got %a\n", pow(2,0.5)); if (pow(2,0.5f) != 1.414213562373095145474621858738828450441360) - error("pow(2,0.5f) want 0x1.6a09e667f3bcdp+0 got %a\n", pow(2,0.5f)); + t_error("pow(2,0.5f) want 0x1.6a09e667f3bcdp+0 got %a\n", pow(2,0.5f)); - return test_status; + return t_status; }