43{
45 {
46
47 { 3425, 400, 8, 225 },
48 { -3425, 400, -8, -225 },
49 { 3425, -400, -8, 225 },
50 { -3425, -400, 8, -225 },
51
52 { 12, 42, 0, 12 },
53 { -12, 42, 0, -12 },
54 { 12, -42, 0, 12 },
55 { -12, -42, 0, -12 },
56
57 { 16777216, 65536, 256, 0 },
58 { -16777216, 65536, -256, 0 },
59 { 16777216, -65536, -256, 0 },
60 { -16777216, -65536, 256, 0 },
61 };
63 {
64
65 { 3425, 400, 8, 225 },
66
67 { 12, 42, 0, 12 },
68
69 { 16777216, 65536, 256, 0 },
70 };
72 {
73
74 { 34918215, 7, 4988316, 3 },
75 { -34918215, 7, -4988316, -3 },
76 { 34918215, -7, -4988316, 3 },
77 { -34918215, -7, 4988316, -3 },
78
79 { 12, 42, 0, 12 },
80 { -12, 42, 0, -12 },
81 { 12, -42, 0, 12 },
82 { -12, -42, 0, -12 },
83
84 { 16777216, 65536, 256, 0 },
85 { -16777216, 65536, -256, 0 },
86 { 16777216, -65536, -256, 0 },
87 { -16777216, -65536, 256, 0 },
88
89
90
91
92 { 0x2AFFFFFFFLL * 100, 400, 2885681151LL, 300 },
93 { -0x2AFFFFFFFLL * 100, 400, -2885681151LL, -300 },
94 { 0x2AFFFFFFFLL * 100, -400, -2885681151LL, 300 },
95 { -0x2AFFFFFFFLL * 100, -400, 2885681151LL, -300 },
96
97 { 0x2AFFFFFFFLL * 50, 0x2AFFFFFFFLL * 100, 0, 0x2AFFFFFFFLL * 50 },
98 { -0x2AFFFFFFFLL * 50, 0x2AFFFFFFFLL * 100, 0, -0x2AFFFFFFFLL * 50 },
99 { 0x2AFFFFFFFLL * 50, -0x2AFFFFFFFLL * 100, 0, 0x2AFFFFFFFLL * 50 },
100 { -0x2AFFFFFFFLL * 50, -0x2AFFFFFFFLL * 100, 0, -0x2AFFFFFFFLL * 50 },
101
102 { 0x2AFFFFFFFLL * 100, 100, 0x2AFFFFFFFLL, 0 },
103 { -0x2AFFFFFFFLL * 100, 100, -0x2AFFFFFFFLL, 0 },
104 { 0x2AFFFFFFFLL * 100, -100, -0x2AFFFFFFFLL, 0 },
105 { -0x2AFFFFFFFLL * 100, -100, 0x2AFFFFFFFLL, 0 },
106 };
108 {
109
110 { 34918215, 7, 4988316, 3 },
111
112 { 12, 42, 0, 12 },
113
114 { 16777216, 65536, 256, 0 },
115
116
117
118
119 { 0x2AFFFFFFFULL * 100, 400, 2885681151ULL, 300 },
120
121 { 0x2AFFFFFFFULL * 50, 0x2AFFFFFFFULL * 100, 0, 0x2AFFFFFFFULL * 50 },
122
123 { 0x2AFFFFFFFULL * 100, 100, 0x2AFFFFFFFULL, 0 },
124 };
126
128 {
129 LONG test_div, test_mod;
130
133 ok(test_div == sdiv[
i].expected_div,
"(sdiv) %d: Expected %ld, got %ld / %ld = %ld\n",
134 i, sdiv[
i].expected_div, sdiv[
i].dividend, sdiv[
i].
divisor, test_div);
135 ok(test_mod == sdiv[
i].expected_mod,
"(sdiv) %d: Expected %ld, got %ld %% %ld = %ld\n",
136 i, sdiv[
i].expected_mod, sdiv[
i].dividend, sdiv[
i].
divisor, test_mod);
137 }
138
140 {
141 ULONG test_div, test_mod;
142
145 ok(test_div == udiv[
i].expected_div,
"(udiv) %d: Expected %lu, got %lu / %lu = %lu\n",
146 i, udiv[
i].expected_div, udiv[
i].dividend, udiv[
i].
divisor, test_div);
147 ok(test_mod == udiv[
i].expected_mod,
"(udiv) %d: Expected %lu, got %lu %% %lu = %lu\n",
148 i, udiv[
i].expected_mod, udiv[
i].dividend, udiv[
i].
divisor, test_mod);
149 }
150
152 {
154
157 ok(test_div == sdiv64[
i].expected_div,
"(sdiv64) %d: Expected %lld, got %lld / %lld = %lld\n",
158 i, sdiv64[
i].expected_div, sdiv64[
i].dividend, sdiv64[
i].
divisor, test_div);
159 ok(test_mod == sdiv64[
i].expected_mod,
"(sdiv64) %d: Expected %lld, got %lld %% %lld = %lld\n",
160 i, sdiv64[
i].expected_mod, sdiv64[
i].dividend, sdiv64[
i].
divisor, test_mod);
161 }
162
164 {
166
169 ok(test_div == udiv64[
i].expected_div,
"(udiv64) %d: Expected %llu, got %llu / %llu = %llu\n",
170 i, udiv64[
i].expected_div, udiv64[
i].dividend, udiv64[
i].
divisor, test_div);
171 ok(test_mod == udiv64[
i].expected_mod,
"(udiv64) %d: Expected %llu, got %llu %% %llu = %llu\n",
172 i, udiv64[
i].expected_mod, udiv64[
i].dividend, udiv64[
i].
divisor, test_mod);
173 }
174}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i