51{
53 {
54 { 1383034209.0, 1383034209LL },
55 { -1383034209.0, -1383034209LL },
56 { 1383034209.1383034209, 1383034209LL },
57 { -1383034209.1383034209, -1383034209LL },
58 { 1383034209.83034209, 1383034209LL },
59 { -1383034209.83034209, -1383034209LL },
60 { 354056757614.0, 354056757614LL },
61 { -354056757614.0, -354056757614LL },
62 { 354056757614.83034209, 354056757614LL },
63 { 18445937028656326656.0, 0x8000000000000000LL },
64 { 1.0000001, 1LL },
67
68
69
72 { .given.raw = 0x7FF0000000000000ULL, 0x8000000000000000LL },
73 { .given.raw = 0xFFF0000000000000ULL, 0x8000000000000000LL },
74 { .given.raw = 0x7FF0000000000001ULL, 0x8000000000000000LL },
75 { .given.raw = 0x7FF8000000000001ULL, 0x8000000000000000LL },
76 { .given.raw = 0x7FFFFFFFFFFFFFFFULL, 0x8000000000000000LL },
77 { .given.raw = 0x7FF80000000000F1ULL, 0x8000000000000000LL },
78 };
80 {
81 { 1383034209.0, 1383034209ULL },
82 { -1383034209.0, 18446744072326517407ULL },
83 { 1383034209.1383034209, 1383034209ULL },
84 { -1383034209.1383034209, 18446744072326517407ULL },
85 { 1383034209.83034209, 1383034209ULL },
86 { -1383034209.83034209, 18446744072326517407ULL },
87 { 354056757614.0, 354056757614ULL },
88 { -354056757614.0, 18446743719652794002ULL },
89 { 354056757614.83034209, 354056757614ULL },
90 { 18445937028656326656.0, 18445937028656326656ULL },
91 { 1.0000001, 1ULL },
94
95
96
99 { .given.raw = 0x7FF0000000000000ULL, 0x8000000000000000LL },
100 { .given.raw = 0xFFF0000000000000ULL, 0x8000000000000000LL },
101 { .given.raw = 0x7FF0000000000001ULL, 0x8000000000000000LL },
102 { .given.raw = 0x7FF8000000000001ULL, 0x8000000000000000LL },
103 { .given.raw = 0x7FFFFFFFFFFFFFFFULL, 0x8000000000000000LL },
104 { .given.raw = 0x7FF80000000000F1ULL, 0x8000000000000000LL },
105 };
107 {
108 { 1383034.0f, 1383034LL },
109 { -1383034.0f, -1383034LL },
110 { 1383034.1383034209f, 1383034LL },
111 { -1383034.1383034209f, -1383034LL },
112 { 1383034.83034209f, 1383034LL },
113 { -1383034.83034209f, -1383034LL },
114 { 354056765440.0f, 354056765440LL },
115 { -354056765440.0f, -354056765440LL },
116 { 3000000.75f, 3000000LL },
117 { 18445937032174764032.0f, 0x8000000000000000LL },
118 { 1.0000001f, 1LL },
120 { -0.0000001f, 0
LL },
121
122
123
126 { .given.raw = 0x7F800000U, 0x8000000000000000LL },
127 { .given.raw = 0xFF800000U, 0x8000000000000000LL },
128 { .given.raw = 0x7F800001U, 0x8000000000000000LL },
129 { .given.raw = 0x7FC00001U, 0x8000000000000000LL },
130 { .given.raw = 0x7F8FFFFFU, 0x8000000000000000LL },
131 { .given.raw = 0x7F8000F1U, 0x8000000000000000LL },
132 };
134 {
135 { 1383034.0f, 1383034ULL },
136 { -1383034.0f, 18446744073708168582ULL },
137 { 1383034.1383034209f, 1383034ULL },
138 { -1383034.1383034209f, 18446744073708168582ULL },
139 { 1383034.83034209f, 1383034ULL },
140 { -1383034.83034209f, 18446744073708168582ULL },
141 { 354056765440.0f, 354056765440ULL },
142 { -354056765440.0f, 18446743719652786176ULL },
143 { 3000000.75f, 3000000ULL },
144 { 18445937032174764032.0f, 18445937032174764032ULL },
145 { 1.0000001f, 1ULL },
146 { 0.0000001f, 0
ULL },
147 { -0.0000001f, 0
ULL },
148
149
150
153 {.given.raw = 0x7F800000U, 0x8000000000000000LL },
154 {.given.raw = 0xFF800000U, 0x8000000000000000LL },
155 {.given.raw = 0x7F800001U, 0x8000000000000000LL },
156 {.given.raw = 0x7FC00001U, 0x8000000000000000LL },
157 {.given.raw = 0x7F8FFFFFU, 0x8000000000000000LL },
158 {.given.raw = 0x7F8000F1U, 0x8000000000000000LL },
159 };
160
162
164 {
165 long long actual;
166
167 actual = (
long long)dtoi64[
i].given.value;
168 ok(actual == dtoi64[
i].
expected,
"(dtoi64) %d: Expected %lld, but %lf -> %lld\n",
169 i, dtoi64[
i].
expected, dtoi64[
i].given.value, actual);
170 }
171
173 {
174 unsigned long long actual;
175
176 actual = (
unsigned long long)dtou64[
i].given.
value;
177 ok(actual == dtou64[
i].
expected,
"(dtou64) %d: Expected %llu, but %lf -> %llu\n",
178 i, dtou64[
i].
expected, dtou64[
i].given.value, actual);
179 }
180
182 {
183 long long actual;
184
186 ok(actual == stoi64[
i].
expected,
"(stoi64) %d: Expected %lld, but %f -> %lld\n",
187 i, stoi64[
i].
expected, stoi64[
i].given.value, actual);
188 }
189
191 {
192 unsigned long long actual;
193
194 actual = (
unsigned long long)stou64[
i].given.
value;
195 ok(actual == stou64[
i].
expected,
"(stou64) %d: Expected %llu, but %f -> %llu\n",
196 i, stou64[
i].
expected, stou64[
i].given.value, actual);
197 }
198}
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