Update contrib.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\math\trealxd2.cpp
15 // TREALXD2.CPP - Test data for TRealX
22 const SConvertFrom32BitTest ConvertFromIntTests[] =
24 SConvertFrom32BitTest(
25 0, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
27 SConvertFrom32BitTest(
28 1, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
30 SConvertFrom32BitTest(
31 -1, SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
33 SConvertFrom32BitTest(
34 100, SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
36 SConvertFrom32BitTest(
37 -100, SRealX(0x80050001,0xc8000000,0x00000000), KErrNone
39 SConvertFrom32BitTest(
40 1073741824, SRealX(0x801d0000,0x80000000,0x00000000), KErrNone
42 SConvertFrom32BitTest(
43 2147483647, SRealX(0x801d0000,0xfffffffe,0x00000000), KErrNone
45 SConvertFrom32BitTest(
46 -2147483647, SRealX(0x801d0001,0xfffffffe,0x00000000), KErrNone
48 SConvertFrom32BitTest(
49 0x80000000, SRealX(0x801e0001,0x80000000,0x00000000), KErrNone
53 const SConvertFrom32BitTest ConvertFromUintTests[] =
55 SConvertFrom32BitTest(
56 0, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
58 SConvertFrom32BitTest(
59 1, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
61 SConvertFrom32BitTest(
62 0xffffffff, SRealX(0x801e0000,0xffffffff,0x00000000), KErrNone
64 SConvertFrom32BitTest(
65 100, SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
67 SConvertFrom32BitTest(
68 -100, SRealX(0x801e0000,0xffffff9c,0x00000000), KErrNone
70 SConvertFrom32BitTest(
71 1073741824, SRealX(0x801d0000,0x80000000,0x00000000), KErrNone
73 SConvertFrom32BitTest(
74 2147483647, SRealX(0x801d0000,0xfffffffe,0x00000000), KErrNone
76 SConvertFrom32BitTest(
77 -2147483647, SRealX(0x801e0000,0x80000001,0x00000000), KErrNone
79 SConvertFrom32BitTest(
80 0x80000000, SRealX(0x801e0000,0x80000000,0x00000000), KErrNone
84 const SConvertFrom32BitTest ConvertFromFloatTests[] =
86 SConvertFrom32BitTest(
87 0x00000000, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
89 SConvertFrom32BitTest(
90 0x80000000, SRealX(0x00000001,0x00000000,0x00000000), KErrNone
92 SConvertFrom32BitTest(
93 0x3f800000, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
95 SConvertFrom32BitTest(
96 0xbf800000, SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
98 SConvertFrom32BitTest(
99 0x3fb504f3, SRealX(0x7fff0000,0xb504f300,0x00000000), KErrNone
101 SConvertFrom32BitTest(
102 0xbfb504f3, SRealX(0x7fff0001,0xb504f300,0x00000000), KErrNone
104 SConvertFrom32BitTest(
105 0x7f3504f3, SRealX(0x807e0000,0xb504f300,0x00000000), KErrNone
107 SConvertFrom32BitTest(
108 0xff3504f3, SRealX(0x807e0001,0xb504f300,0x00000000), KErrNone
111 SConvertFrom32BitTest(
112 0x7fb504f3, SRealX(0xffff0000,0xb504f300,0x00000000), KErrArgument
114 SConvertFrom32BitTest(
115 0xffb504f3, SRealX(0xffff0001,0xb504f300,0x00000000), KErrArgument
118 SConvertFrom32BitTest(
119 0x7f800000, SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
121 SConvertFrom32BitTest(
122 0xff800000, SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
124 SConvertFrom32BitTest(
125 0x00ffffff, SRealX(0x7f810000,0xffffff00,0x00000000), KErrNone
127 SConvertFrom32BitTest(
128 0x80ffffff, SRealX(0x7f810001,0xffffff00,0x00000000), KErrNone
130 SConvertFrom32BitTest(
131 0x007fffff, SRealX(0x7f800000,0xfffffe00,0x00000000), KErrNone
133 SConvertFrom32BitTest(
134 0x807fffff, SRealX(0x7f800001,0xfffffe00,0x00000000), KErrNone
136 SConvertFrom32BitTest(
137 0x003fffff, SRealX(0x7f7f0000,0xfffffc00,0x00000000), KErrNone
139 SConvertFrom32BitTest(
140 0x803fffff, SRealX(0x7f7f0001,0xfffffc00,0x00000000), KErrNone
142 SConvertFrom32BitTest(
143 0x00000001, SRealX(0x7f6a0000,0x80000000,0x00000000), KErrNone
145 SConvertFrom32BitTest(
146 0x80000001, SRealX(0x7f6a0001,0x80000000,0x00000000), KErrNone
150 const SConvertFrom64BitTest ConvertFromInt64Tests[] =
152 SConvertFrom64BitTest(
153 MAKE_TINT64(0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), KErrNone
155 SConvertFrom64BitTest(
156 MAKE_TINT64(0x00000000,0x00000001), SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
158 SConvertFrom64BitTest(
159 MAKE_TINT64(0xffffffff,0xffffffff), SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
161 SConvertFrom64BitTest(
162 MAKE_TINT64(0x00000000,0x80000000), SRealX(0x801e0000,0x80000000,0x00000000), KErrNone
164 SConvertFrom64BitTest(
165 MAKE_TINT64(0x00000001,0x00000000), SRealX(0x801f0000,0x80000000,0x00000000), KErrNone
167 SConvertFrom64BitTest(
168 MAKE_TINT64(0x0000000b,0x504f334f), SRealX(0x80220000,0xb504f334,0xf0000000), KErrNone
170 SConvertFrom64BitTest(
171 MAKE_TINT64(0xc0000000,0x00000001), SRealX(0x803c0001,0xffffffff,0xfffffffc), KErrNone
173 SConvertFrom64BitTest(
174 MAKE_TINT64(0x80000000,0x00000001), SRealX(0x803d0001,0xffffffff,0xfffffffe), KErrNone
176 SConvertFrom64BitTest(
177 MAKE_TINT64(0x7fffffff,0xffffffff), SRealX(0x803d0000,0xffffffff,0xfffffffe), KErrNone
179 SConvertFrom64BitTest(
180 MAKE_TINT64(0x80000000,0x00000000), SRealX(0x803e0001,0x80000000,0x00000000), KErrNone
184 const SConvertFrom64BitTest ConvertFromDoubleTests[] =
186 SConvertFrom64BitTest(
187 MAKE_TINT64(0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), KErrNone
189 SConvertFrom64BitTest(
190 MAKE_TINT64(0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000), KErrNone
192 SConvertFrom64BitTest(
193 MAKE_TINT64(0x3ff00000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
195 SConvertFrom64BitTest(
196 MAKE_TINT64(0xbff00000,0x00000000), SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
198 SConvertFrom64BitTest(
199 MAKE_TINT64(0x3ff6a09e,0x667f3bcd), SRealX(0x7fff0000,0xb504f333,0xf9de6800), KErrNone
201 SConvertFrom64BitTest(
202 MAKE_TINT64(0xbff6a09e,0x667f3bcd), SRealX(0x7fff0001,0xb504f333,0xf9de6800), KErrNone
204 SConvertFrom64BitTest(
205 MAKE_TINT64(0x40590000,0x00000000), SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
207 SConvertFrom64BitTest(
208 MAKE_TINT64(0xc0590000,0x00000000), SRealX(0x80050001,0xc8000000,0x00000000), KErrNone
210 SConvertFrom64BitTest(
211 MAKE_TINT64(0x7fe6a09e,0x667f3bcd), SRealX(0x83fe0000,0xb504f333,0xf9de6800), KErrNone
213 SConvertFrom64BitTest(
214 MAKE_TINT64(0xffe6a09e,0x667f3bcd), SRealX(0x83fe0001,0xb504f333,0xf9de6800), KErrNone
217 SConvertFrom64BitTest(
218 MAKE_TINT64(0x7ff6a09e,0x667f3bcd), SRealX(0xffff0000,0xb504f333,0xf9de6800), KErrArgument
220 SConvertFrom64BitTest(
221 MAKE_TINT64(0xfff6a09e,0x667f3bcd), SRealX(0xffff0001,0xb504f333,0xf9de6800), KErrArgument
223 SConvertFrom64BitTest(
224 MAKE_TINT64(0x7ff00000,0x00000001), SRealX(0xffff0000,0x80000000,0x00000800), KErrArgument
226 SConvertFrom64BitTest(
227 MAKE_TINT64(0xfff00000,0x00000001), SRealX(0xffff0001,0x80000000,0x00000800), KErrArgument
230 SConvertFrom64BitTest(
231 MAKE_TINT64(0x7ff00000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
233 SConvertFrom64BitTest(
234 MAKE_TINT64(0xfff00000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
236 SConvertFrom64BitTest(
237 MAKE_TINT64(0x001fffff,0xffffffff), SRealX(0x7c010000,0xffffffff,0xfffff800), KErrNone
239 SConvertFrom64BitTest(
240 MAKE_TINT64(0x801fffff,0xffffffff), SRealX(0x7c010001,0xffffffff,0xfffff800), KErrNone
242 SConvertFrom64BitTest(
243 MAKE_TINT64(0x000fffff,0xffffffff), SRealX(0x7c000000,0xffffffff,0xfffff000), KErrNone
245 SConvertFrom64BitTest(
246 MAKE_TINT64(0x800fffff,0xffffffff), SRealX(0x7c000001,0xffffffff,0xfffff000), KErrNone
248 SConvertFrom64BitTest(
249 MAKE_TINT64(0x0007ffff,0xffffffff), SRealX(0x7bff0000,0xffffffff,0xffffe000), KErrNone
251 SConvertFrom64BitTest(
252 MAKE_TINT64(0x8007ffff,0xffffffff), SRealX(0x7bff0001,0xffffffff,0xffffe000), KErrNone
254 SConvertFrom64BitTest(
255 MAKE_TINT64(0x0003ffff,0xffffffff), SRealX(0x7bfe0000,0xffffffff,0xffffc000), KErrNone
257 SConvertFrom64BitTest(
258 MAKE_TINT64(0x8003ffff,0xffffffff), SRealX(0x7bfe0001,0xffffffff,0xffffc000), KErrNone
260 SConvertFrom64BitTest(
261 MAKE_TINT64(0x00000000,0xffffffff), SRealX(0x7bec0000,0xffffffff,0x00000000), KErrNone
263 SConvertFrom64BitTest(
264 MAKE_TINT64(0x80000000,0xffffffff), SRealX(0x7bec0001,0xffffffff,0x00000000), KErrNone
266 SConvertFrom64BitTest(
267 MAKE_TINT64(0x00000000,0x7fffffff), SRealX(0x7beb0000,0xfffffffe,0x00000000), KErrNone
269 SConvertFrom64BitTest(
270 MAKE_TINT64(0x80000000,0x7fffffff), SRealX(0x7beb0001,0xfffffffe,0x00000000), KErrNone
272 SConvertFrom64BitTest(
273 MAKE_TINT64(0x00000000,0x0b504f33), SRealX(0x7be80000,0xb504f330,0x00000000), KErrNone
275 SConvertFrom64BitTest(
276 MAKE_TINT64(0x80000000,0x0b504f33), SRealX(0x7be80001,0xb504f330,0x00000000), KErrNone
278 SConvertFrom64BitTest(
279 MAKE_TINT64(0x0000b504,0xf333f9de), SRealX(0x7bfc0000,0xb504f333,0xf9de0000), KErrNone
281 SConvertFrom64BitTest(
282 MAKE_TINT64(0x8000b504,0xf333f9de), SRealX(0x7bfc0001,0xb504f333,0xf9de0000), KErrNone
284 SConvertFrom64BitTest(
285 MAKE_TINT64(0x00000000,0x00000001), SRealX(0x7bcd0000,0x80000000,0x00000000), KErrNone
287 SConvertFrom64BitTest(
288 MAKE_TINT64(0x80000000,0x00000001), SRealX(0x7bcd0001,0x80000000,0x00000000), KErrNone
292 const SConvertTo32BitTest ConvertToIntTests[] =
295 SRealX(0xffff0001,0x80000000,0x00000001), 0x00000000, KErrNone
298 SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
301 SRealX(0x00000001,0x00000000,0x00000000), 0x00000000, KErrNone
304 SRealX(0x7ffe0000,0xffffffff,0xffffffff), 0x00000000, KErrNone
307 SRealX(0x7ffe0001,0xffffffff,0xffffffff), 0x00000000, KErrNone
310 SRealX(0x00010000,0x80000000,0x00000000), 0x00000000, KErrNone
313 SRealX(0x00010001,0x80000000,0x00000000), 0x00000000, KErrNone
316 SRealX(0x7fff0000,0x80000000,0x00000000), 0x00000001, KErrNone
319 SRealX(0x7fff0001,0x80000000,0x00000000), 0xffffffff, KErrNone
322 SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x00000001, KErrNone
325 SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0xffffffff, KErrNone
328 SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x00000003, KErrNone
331 SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0xfffffffd, KErrNone
334 SRealX(0x80050000,0xc8000000,0x00000000), 0x00000064, KErrNone
337 SRealX(0x801d0000,0xfffffffc,0x00000000), 0x7ffffffe, KErrNone
340 SRealX(0x801d0001,0xfffffffc,0x00000000), 0x80000002, KErrNone
343 SRealX(0x801d0000,0xfffffffe,0x00000000), 0x7fffffff, KErrNone
346 SRealX(0x801d0001,0xfffffffe,0x00000000), 0x80000001, KErrNone
349 SRealX(0x801e0001,0x80000000,0x00000000), 0x80000000, KErrNone
352 SRealX(0x801e0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
355 SRealX(0x801f0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
358 SRealX(0x803f0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
361 SRealX(0xfffe0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
364 SRealX(0xffff0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
367 SRealX(0x801f0001,0x80000000,0x00000000), 0x80000000, KErrNone
370 SRealX(0x803f0001,0x80000000,0x00000000), 0x80000000, KErrNone
373 SRealX(0xfffe0001,0x80000000,0x00000000), 0x80000000, KErrNone
376 SRealX(0xffff0001,0x80000000,0x00000000), 0x80000000, KErrNone
379 SRealX(0xffff0000,0x80000000,0x00000001), 0x00000000, KErrNone
382 SRealX(0xffff0000,0xc0000000,0x00000000), 0x00000000, KErrNone
385 SRealX(0xffff0001,0xc0000000,0x00000000), 0x00000000, KErrNone
389 const SConvertTo32BitTest ConvertToUintTests[] =
392 SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
395 SRealX(0x00000001,0x00000000,0x00000000), 0x00000000, KErrNone
398 SRealX(0x7ffe0000,0xffffffff,0xffffffff), 0x00000000, KErrNone
401 SRealX(0x7ffe0001,0xffffffff,0xffffffff), 0x00000000, KErrNone
404 SRealX(0x00010000,0x80000000,0x00000000), 0x00000000, KErrNone
407 SRealX(0x00010001,0x80000000,0x00000000), 0x00000000, KErrNone
410 SRealX(0x7fff0000,0x80000000,0x00000000), 0x00000001, KErrNone
413 SRealX(0x7fff0001,0x80000000,0x00000000), 0x00000000, KErrNone
416 SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x00000001, KErrNone
419 SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0x00000000, KErrNone
422 SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x00000003, KErrNone
425 SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0x00000000, KErrNone
428 SRealX(0x80050000,0xc8000000,0x00000000), 0x00000064, KErrNone
431 SRealX(0x801d0000,0xfffffffc,0x00000000), 0x7ffffffe, KErrNone
434 SRealX(0x801d0001,0xfffffffc,0x00000000), 0x00000000, KErrNone
437 SRealX(0x801d0000,0xfffffffe,0x00000000), 0x7fffffff, KErrNone
440 SRealX(0x801d0001,0xfffffffe,0x00000000), 0x00000000, KErrNone
443 SRealX(0x801e0001,0x80000000,0x00000000), 0x00000000, KErrNone
446 SRealX(0x801e0000,0x80000000,0x00000000), 0x80000000, KErrNone
449 SRealX(0x801e0000,0xc90fdaa2,0x00000000), 0xc90fdaa2, KErrNone
452 SRealX(0x801f0000,0x80000000,0x00000000), 0xffffffff, KErrNone
455 SRealX(0x803f0000,0x80000000,0x00000000), 0xffffffff, KErrNone
458 SRealX(0xfffe0000,0x80000000,0x00000000), 0xffffffff, KErrNone
461 SRealX(0xffff0000,0x80000000,0x00000000), 0xffffffff, KErrNone
464 SRealX(0x801f0001,0x80000000,0x00000000), 0x00000000, KErrNone
467 SRealX(0x803f0001,0x80000000,0x00000000), 0x00000000, KErrNone
470 SRealX(0xfffe0001,0x80000000,0x00000000), 0x00000000, KErrNone
473 SRealX(0xffff0001,0x80000000,0x00000000), 0x00000000, KErrNone
476 SRealX(0xffff0001,0x80000000,0x00000001), 0x00000000, KErrNone
479 SRealX(0xffff0000,0x80000000,0x00000001), 0x00000000, KErrNone
482 SRealX(0xffff0000,0xc0000000,0x00000000), 0x00000000, KErrNone
485 SRealX(0xffff0001,0xc0000000,0x00000000), 0x00000000, KErrNone
489 const SConvertTo64BitTest ConvertToInt64Tests[] =
492 SRealX(0x801e0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x80000000), KErrNone
495 SRealX(0x00000000,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
498 SRealX(0x00000001,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
501 SRealX(0x7ffe0000,0xffffffff,0xffffffff), MAKE_TINT64(0x00000000,0x00000000), KErrNone
504 SRealX(0x7ffe0001,0xffffffff,0xffffffff), MAKE_TINT64(0x00000000,0x00000000), KErrNone
507 SRealX(0x7fff0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
510 SRealX(0x7fff0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0xffffffff), KErrNone
513 SRealX(0x7fff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000001), KErrNone
516 SRealX(0x7fff0001,0xb504f333,0xf9de6484), MAKE_TINT64(0xffffffff,0xffffffff), KErrNone
519 SRealX(0x80000000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x00000000,0x00000003), KErrNone
522 SRealX(0x80000001,0xc90fdaa2,0x2168c235), MAKE_TINT64(0xffffffff,0xfffffffd), KErrNone
525 SRealX(0x80050000,0xc8000000,0x00000000), MAKE_TINT64(0x00000000,0x00000064), KErrNone
528 SRealX(0x80050001,0xc8000000,0x00000000), MAKE_TINT64(0xffffffff,0xffffff9c), KErrNone
531 SRealX(0x801d0000,0xfffffffc,0x00000000), MAKE_TINT64(0x00000000,0x7ffffffe), KErrNone
534 SRealX(0x801d0001,0xfffffffc,0x00000000), MAKE_TINT64(0xffffffff,0x80000002), KErrNone
537 SRealX(0x801d0000,0xfffffffe,0x00000000), MAKE_TINT64(0x00000000,0x7fffffff), KErrNone
540 SRealX(0x801d0001,0xfffffffe,0x00000000), MAKE_TINT64(0xffffffff,0x80000001), KErrNone
543 SRealX(0x801e0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0x80000000), KErrNone
546 SRealX(0x801f0000,0x80000000,0x00000000), MAKE_TINT64(0x00000001,0x00000000), KErrNone
549 SRealX(0x801f0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0x00000000), KErrNone
552 SRealX(0x801f0000,0xcccccccc,0xcccccccd), MAKE_TINT64(0x00000001,0x99999999), KErrNone
555 SRealX(0x801f0001,0xcccccccc,0xcccccccd), MAKE_TINT64(0xfffffffe,0x66666667), KErrNone
558 SRealX(0x80220000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000000b,0x504f333f), KErrNone
561 SRealX(0x80260000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000000b5,0x04f333f9), KErrNone
564 SRealX(0x803d0000,0xffffffff,0xfffffffc), MAKE_TINT64(0x7fffffff,0xfffffffe), KErrNone
567 SRealX(0x803d0001,0xffffffff,0xfffffffc), MAKE_TINT64(0x80000000,0x00000002), KErrNone
570 SRealX(0x803d0000,0xffffffff,0xfffffffe), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
573 SRealX(0x803d0001,0xffffffff,0xfffffffe), MAKE_TINT64(0x80000000,0x00000001), KErrNone
576 SRealX(0x803e0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
579 SRealX(0x803e0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
582 SRealX(0x803f0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
585 SRealX(0x803f0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
588 SRealX(0xfffe0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
591 SRealX(0xfffe0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
594 SRealX(0xffff0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
597 SRealX(0xffff0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
600 SRealX(0xffff0000,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000000), KErrNone
603 SRealX(0xffff0001,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000000), KErrNone
606 SRealX(0xffff0000,0xc0000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
609 SRealX(0xffff0001,0xc0000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
613 const SConvertTo32BitTest ConvertToFloatTests[] =
616 SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
619 SRealX(0x00000001,0x00000000,0x00000000), 0x80000000, KErrNone
622 SRealX(0x7fff0000,0x80000000,0x00000000), 0x3f800000, KErrNone
625 SRealX(0x7fff0001,0x80000000,0x00000000), 0xbf800000, KErrNone
628 SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x3fb504f3, KErrNone
631 SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0xbfb504f3, KErrNone
634 SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x40490fdb, KErrNone
637 SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0xc0490fdb, KErrNone
640 SRealX(0x7fff0000,0xffffff00,0x00000000), 0x3fffffff, KErrNone
643 SRealX(0x7fff0000,0xffffff80,0x00000000), 0x40000000, KErrNone
646 SRealX(0x7fff0000,0xfffffe80,0x00000000), 0x3ffffffe, KErrNone
649 SRealX(0x7fff0000,0xfffffe80,0x00000001), 0x3fffffff, KErrNone
652 SRealX(0x7fff0100,0xffffff80,0x00000000), 0x40000000, KErrNone
655 SRealX(0x7fff0200,0xffffff80,0x00000000), 0x3fffffff, KErrNone
658 SRealX(0x7fff0100,0xfffffe80,0x00000000), 0x3fffffff, KErrNone
661 SRealX(0x7fff0200,0xfffffe80,0x00000000), 0x3ffffffe, KErrNone
664 SRealX(0x807e0000,0x80000000,0x00000000), 0x7f000000, KErrNone
667 SRealX(0x807f0000,0x80000000,0x00000000), 0x7f800000, KErrOverflow
670 SRealX(0x807f0001,0x80000000,0x00000000), 0xff800000, KErrOverflow
673 SRealX(0x807e0000,0xffffff80,0x00000000), 0x7f800000, KErrOverflow
676 SRealX(0x807e0100,0xffffff80,0x00000000), 0x7f800000, KErrOverflow
679 SRealX(0x807e0200,0xffffff80,0x00000000), 0x7f7fffff, KErrNone
682 SRealX(0x807f0000,0xb504f333,0xf9de6484), 0x7f800000, KErrOverflow
685 SRealX(0xffff0000,0x80000000,0x00000000), 0x7f800000, KErrOverflow
688 SRealX(0xffff0001,0x80000000,0x00000000), 0xff800000, KErrOverflow
691 SRealX(0xffff0000,0xc504f333,0xf9de6484), 0x7fc504f3, KErrArgument
694 SRealX(0xffff0000,0xc90fdaa2,0x2168c235), 0x7fc90fda, KErrArgument
697 SRealX(0xffff0001,0xc504f333,0xf9de6484), 0xffc504f3, KErrArgument
700 SRealX(0x7f810000,0xb504f333,0xf9de6484), 0x00b504f3, KErrNone
703 SRealX(0x7f810000,0xb504f333,0xf9de6484), 0x00b504f3, KErrNone
706 SRealX(0x7f800000,0xb504f333,0xf9de6484), 0x005a827a, KErrNone
709 SRealX(0x7f800000,0xffffffff,0xffffffff), 0x00800000, KErrNone
712 SRealX(0x7f7f0000,0xb504f333,0xf9de6484), 0x002d413d, KErrNone
715 SRealX(0x7f7d0000,0xb504f333,0xf9de6484), 0x000b504f, KErrNone
718 SRealX(0x7f790000,0xb504f333,0xf9de6484), 0x0000b505, KErrNone
721 SRealX(0x7f750000,0xb504f333,0xf9de6484), 0x00000b50, KErrNone
724 SRealX(0x7f710000,0xb504f333,0xf9de6484), 0x000000b5, KErrNone
727 SRealX(0x7f6d0000,0xb504f333,0xf9de6484), 0x0000000b, KErrNone
730 SRealX(0x7f6a0000,0xc504f333,0xf9de6484), 0x00000002, KErrNone
733 SRealX(0x7f690000,0xc504f333,0xf9de6484), 0x00000001, KErrNone
736 SRealX(0x7f680000,0xc504f333,0xf9de6484), 0x00000000, KErrUnderflow
739 SRealX(0x7f680001,0xc504f333,0xf9de6484), 0x80000000, KErrUnderflow
742 SRealX(0x7f6a0000,0x80000000,0x00000000), 0x00000001, KErrNone
745 SRealX(0x7f690000,0x80000000,0x00000000), 0x00000000, KErrUnderflow
748 SRealX(0x7f690000,0x80000000,0x00000001), 0x00000001, KErrNone
751 SRealX(0x7f690100,0x80000000,0x00000000), 0x00000001, KErrNone
754 SRealX(0x7f690200,0x80000000,0x00000000), 0x00000000, KErrUnderflow
758 const SConvertTo64BitTest ConvertToDoubleTests[] =
761 SRealX(0x00000000,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
764 SRealX(0x00000001,0x00000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
767 SRealX(0x7fff0000,0x80000000,0x00000000), MAKE_TINT64(0x3ff00000,0x00000000), KErrNone
770 SRealX(0x7fff0001,0x80000000,0x00000000), MAKE_TINT64(0xbff00000,0x00000000), KErrNone
773 SRealX(0x7fff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x3ff6a09e,0x667f3bcd), KErrNone
776 SRealX(0x7fff0001,0xb504f333,0xf9de6484), MAKE_TINT64(0xbff6a09e,0x667f3bcd), KErrNone
779 SRealX(0x80000000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x400921fb,0x54442d18), KErrNone
782 SRealX(0x80000001,0xc90fdaa2,0x2168c235), MAKE_TINT64(0xc00921fb,0x54442d18), KErrNone
785 SRealX(0x7fff0000,0xffffffff,0xfffff800), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
788 SRealX(0x7fff0000,0xffffffff,0xfffffc00), MAKE_TINT64(0x40000000,0x00000000), KErrNone
791 SRealX(0x7fff0000,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xfffffffe), KErrNone
794 SRealX(0x7fff0000,0xffffffff,0xfffff401), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
797 SRealX(0x7fff0100,0xffffffff,0xfffffc00), MAKE_TINT64(0x40000000,0x00000000), KErrNone
800 SRealX(0x7fff0200,0xffffffff,0xfffffc00), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
803 SRealX(0x7fff0100,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
806 SRealX(0x7fff0200,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xfffffffe), KErrNone
809 SRealX(0x83fe0000,0x80000000,0x00000000), MAKE_TINT64(0x7fe00000,0x00000000), KErrNone
812 SRealX(0x83ff0000,0x80000000,0x00000000), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
815 SRealX(0x83ff0001,0x80000000,0x00000000), MAKE_TINT64(0xfff00000,0x00000000), KErrOverflow
818 SRealX(0x83fe0000,0xffffffff,0xfffffc00), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
821 SRealX(0x83fe0100,0xffffffff,0xfffffc00), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
824 SRealX(0x83fe0200,0xffffffff,0xfffffc00), MAKE_TINT64(0x7fefffff,0xffffffff), KErrNone
827 SRealX(0x83ff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
830 SRealX(0xffff0000,0x80000000,0x00000000), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
833 SRealX(0xffff0001,0x80000000,0x00000000), MAKE_TINT64(0xfff00000,0x00000000), KErrOverflow
836 SRealX(0xffff0000,0xf504f333,0xf9de6484), MAKE_TINT64(0x7ffea09e,0x667f3bcc), KErrArgument
839 SRealX(0xffff0001,0xf504f333,0xf9de6484), MAKE_TINT64(0xfffea09e,0x667f3bcc), KErrArgument
842 SRealX(0xffff0000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x7ff921fb,0x54442d18), KErrArgument
845 SRealX(0x7c010000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0016a09e,0x667f3bcd), KErrNone
848 SRealX(0x7c000000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000b504f,0x333f9de6), KErrNone
851 SRealX(0x7c000000,0xffffffff,0xffffffff), MAKE_TINT64(0x00100000,0x00000000), KErrNone
854 SRealX(0x7bff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0005a827,0x999fcef3), KErrNone
857 SRealX(0x7bfc0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000b504,0xf333f9de), KErrNone
860 SRealX(0x7bf80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000b50,0x4f333f9e), KErrNone
863 SRealX(0x7bf40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000000b5,0x04f333fa), KErrNone
866 SRealX(0x7bf00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000000b,0x504f3340), KErrNone
869 SRealX(0x7bec0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0xb504f334), KErrNone
872 SRealX(0x7be80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0b504f33), KErrNone
875 SRealX(0x7be40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00b504f3), KErrNone
878 SRealX(0x7be00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x000b504f), KErrNone
881 SRealX(0x7bdc0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0000b505), KErrNone
884 SRealX(0x7bd80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000b50), KErrNone
887 SRealX(0x7bd40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x000000b5), KErrNone
890 SRealX(0x7bd00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0000000b), KErrNone
893 SRealX(0x7bcd0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000002), KErrNone
896 SRealX(0x7bcc0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000001), KErrNone
899 SRealX(0x7bcb0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
902 SRealX(0x7bcb0001,0xc504f333,0xf9de6484), MAKE_TINT64(0x80000000,0x00000000), KErrUnderflow
905 SRealX(0x7bcd0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
908 SRealX(0x7bcc0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
911 SRealX(0x7bcc0000,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000001), KErrNone
914 SRealX(0x7bcc0100,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
917 SRealX(0x7bcc0200,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
921 const SSpecialValueTest SpecialValueTests[] =
924 SRealX(0x00000000,0x00000000,0x00000000), 9 /* 1001 */ ),
926 SRealX(0x00000001,0x00000000,0x00000000), 9 /* 1001 */ ),
928 SRealX(0x00010000,0x80000000,0x00000000), 1 /* 0001 */ ),
930 SRealX(0x7fff0000,0x80000000,0x00000000), 1 /* 0001 */ ),
932 SRealX(0xfffe0000,0x80000000,0x00000000), 1 /* 0001 */ ),
934 SRealX(0xfffe0001,0x80000000,0x00000000), 1 /* 0001 */ ),
936 SRealX(0xffff0000,0x80000000,0x00000000), 2 /* 0010 */ ),
938 SRealX(0xffff0001,0x80000000,0x00000000), 2 /* 0010 */ ),
940 SRealX(0xffff0000,0x80000000,0x00000001), 4 /* 0100 */ ),
942 SRealX(0xffff0001,0x80000000,0x00000001), 4 /* 0100 */ ),
944 SRealX(0xffff0000,0xc0000000,0x00000000), 4 /* 0100 */ ),
946 SRealX(0xffff0001,0xc0000000,0x00000000), 4 /* 0100 */ )
949 GLDEF_D const TInt NumConvertFromIntTests=sizeof(ConvertFromIntTests)/sizeof(SConvertFrom32BitTest);
950 GLDEF_D const TInt NumConvertFromUintTests=sizeof(ConvertFromUintTests)/sizeof(SConvertFrom32BitTest);
951 GLDEF_D const TInt NumConvertFromFloatTests=sizeof(ConvertFromFloatTests)/sizeof(SConvertFrom32BitTest);
952 GLDEF_D const TInt NumConvertFromInt64Tests=sizeof(ConvertFromInt64Tests)/sizeof(SConvertFrom64BitTest);
953 GLDEF_D const TInt NumConvertFromDoubleTests=sizeof(ConvertFromDoubleTests)/sizeof(SConvertFrom64BitTest);
954 GLDEF_D const TInt NumConvertToIntTests=sizeof(ConvertToIntTests)/sizeof(SConvertTo32BitTest);
955 GLDEF_D const TInt NumConvertToUintTests=sizeof(ConvertToUintTests)/sizeof(SConvertTo32BitTest);
956 GLDEF_D const TInt NumConvertToInt64Tests=sizeof(ConvertToInt64Tests)/sizeof(SConvertTo64BitTest);
957 GLDEF_D const TInt NumConvertToFloatTests=sizeof(ConvertToFloatTests)/sizeof(SConvertTo32BitTest);
958 GLDEF_D const TInt NumConvertToDoubleTests=sizeof(ConvertToDoubleTests)/sizeof(SConvertTo64BitTest);
959 GLDEF_D const TInt NumSpecialValueTests=sizeof(SpecialValueTests)/sizeof(SSpecialValueTest);