Author: pschweitzer
Date: Wed Nov 30 21:03:35 2011
New Revision: 54550
URL:
http://svn.reactos.org/svn/reactos?rev=54550&view=rev
Log:
[MSVCRT_APITEST]
Add more tests
Modified:
trunk/rostests/apitests/msvcrt/ieee.c
Modified: trunk/rostests/apitests/msvcrt/ieee.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/msvcrt/ieee.c?re…
==============================================================================
--- trunk/rostests/apitests/msvcrt/ieee.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/msvcrt/ieee.c [iso-8859-1] Wed Nov 30 21:03:35 2011
@@ -7,6 +7,7 @@
#include <wine/test.h>
#include <float.h>
+#include <math.h>
typedef union
{
@@ -199,7 +200,7 @@
ok(_isnan(tested.d) == TRUE, "_isnan = FALSE\n");
}
-void test_scalb(void)
+void test_j0(void)
{
ieee_double tested;
ieee_double expected;
@@ -210,6 +211,278 @@
errno = 0xDEADBEEF;
tested.l = 0xFFFFFFFFFFFFFFFFLL;
expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF7FFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFEFFFFFFFFFFFFFLL;
+ expected.l = 0x1FE7206E1D6FDCFALL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8010000000000000LL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x800FFFFFFFFFFFFFLL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000001LL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000000LL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000000LL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000001LL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x000FFFFFFFFFFFFFLL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0010000000000000LL;
+ expected.l = 0x3FF0000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FEFFFFFFFFFFFFFLL;
+ expected.l = 0x1FE7206E1D6FDCFALL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000001LL;
+ expected.l = 0x7FF8000000000001LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF7FFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF8000000000000LL;
+ expected.l = 0x7FF8000000000000LL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FFFFFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _j0(tested.d);
+ ok(result.l == expected.l, "_j0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+}
+
+void test_j1(void)
+{
+ ieee_double tested;
+ ieee_double expected;
+ ieee_double result;
+
+ expected.l = 0;
+
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFFFFFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF7FFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFEFFFFFFFFFFFFFLL;
+ expected.l = 0x9FE7206E1D6FDCFALL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8010000000000000LL;
+ expected.l = 0x8008000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x800FFFFFFFFFFFFFLL;
+ expected.l = 0x8008000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000001LL;
+ expected.l = 0x8000000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000000LL;
+ expected.l = 0x8000000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000000LL;
+ expected.l = 0x0000000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000001LL;
+ expected.l = 0x0000000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x000FFFFFFFFFFFFFLL;
+ expected.l = 0x0008000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0010000000000000LL;
+ expected.l = 0x0008000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FEFFFFFFFFFFFFFLL;
+ expected.l = 0x1FE7206E1D6FDCFALL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000001LL;
+ expected.l = 0x7FF8000000000001LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF7FFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF8000000000000LL;
+ expected.l = 0x7FF8000000000000LL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FFFFFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _j1(tested.d);
+ ok(result.l == expected.l, "_j1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+}
+
+void test_scalb(void)
+{
+ ieee_double tested;
+ ieee_double expected;
+ ieee_double result;
+
+ expected.l = 0;
+
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFFFFFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
result.d = _scalb(tested.d, 3);
ok(result.l == expected.l, "_scalb returned: %I64x\n", result.l);
ok(errno == EDOM, "errno: %d\n", errno);
@@ -332,6 +605,278 @@
expected.l = 0x7FFFFFFFFFFFFFFFLL;
result.d = _scalb(tested.d, 3);
ok(result.l == expected.l, "_scalb returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+}
+
+void test_y0(void)
+{
+ ieee_double tested;
+ ieee_double expected;
+ ieee_double result;
+
+ expected.l = 0;
+
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFFFFFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF7FFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFEFFFFFFFFFFFFFLL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8010000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x800FFFFFFFFFFFFFLL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000001LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000000LL;
+ expected.l = 0xFFF0000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == ERANGE, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000000LL;
+ expected.l = 0xFFF0000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == ERANGE, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000001LL;
+ expected.l = 0xC07D9FFC3469E1B3LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x000FFFFFFFFFFFFFLL;
+ expected.l = 0xC07C30D8F820740ELL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0010000000000000LL;
+ expected.l = 0xC07C30D8F820740ELL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FEFFFFFFFFFFFFFLL;
+ expected.l = 0x9FD5A36F8428F58BLL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000001LL;
+ expected.l = 0x7FF8000000000001LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF7FFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF8000000000000LL;
+ expected.l = 0x7FF8000000000000LL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FFFFFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _y0(tested.d);
+ ok(result.l == expected.l, "_y0 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+}
+
+void test_y1(void)
+{
+ ieee_double tested;
+ ieee_double expected;
+ ieee_double result;
+
+ expected.l = 0;
+
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFFFFFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF8000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF7FFFFFFFFFFFFLL;
+ expected.l = 0xFFFFFFFFFFFFFFFFLL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000001LL;
+ expected.l = 0xFFF8000000000001LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0xFFEFFFFFFFFFFFFFLL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8010000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x800FFFFFFFFFFFFFLL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000001LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x8000000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == ERANGE, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == ERANGE, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0000000000000001LL;
+ expected.l = 0xFFF0000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x000FFFFFFFFFFFFFLL;
+ expected.l = 0xFFC45F306DC9C884LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x0010000000000000LL;
+ expected.l = 0xFFC45F306DC9C883LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FEFFFFFFFFFFFFFLL;
+ expected.l = 0x9FD5A36F8428F58BLL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == 0xDEADBEEF, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000000LL;
+ expected.l = 0xFFF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF0000000000001LL;
+ expected.l = 0x7FF8000000000001LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF7FFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FF8000000000000LL;
+ expected.l = 0x7FF8000000000000LL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
+ ok(errno == EDOM, "errno: %d\n", errno);
+ errno = 0xDEADBEEF;
+ tested.l = 0x7FFFFFFFFFFFFFFFLL;
+ expected.l = 0x7FFFFFFFFFFFFFFFLL;
+ result.d = _y1(tested.d);
+ ok(result.l == expected.l, "_y1 returned: %I64x\n", result.l);
ok(errno == EDOM, "errno: %d\n", errno);
}
@@ -340,5 +885,9 @@
test_finite();
test_fpclass();
test_isnan();
+ test_j0();
+ test_j1();
test_scalb();
+ test_y0();
+ test_y1();
}