os/kernelhwsrv/kerneltest/e32test/math/trealxd2.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // e32test\math\trealxd2.cpp
    15 // TREALXD2.CPP - Test data for TRealX
    16 // 
    17 //
    18 
    19 
    20 #include "t_realxd.h"
    21 
    22 const SConvertFrom32BitTest ConvertFromIntTests[] =
    23 	{
    24 	SConvertFrom32BitTest(
    25 		0, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
    26 		),
    27 	SConvertFrom32BitTest(
    28 		1, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
    29 		),
    30 	SConvertFrom32BitTest(
    31 		-1, SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
    32 		),
    33 	SConvertFrom32BitTest(
    34 		100, SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
    35 		),
    36 	SConvertFrom32BitTest(
    37 		-100, SRealX(0x80050001,0xc8000000,0x00000000), KErrNone
    38 		),
    39 	SConvertFrom32BitTest(
    40 		1073741824, SRealX(0x801d0000,0x80000000,0x00000000), KErrNone
    41 		),
    42 	SConvertFrom32BitTest(
    43 		2147483647, SRealX(0x801d0000,0xfffffffe,0x00000000), KErrNone
    44 		),
    45 	SConvertFrom32BitTest(
    46 		-2147483647, SRealX(0x801d0001,0xfffffffe,0x00000000), KErrNone
    47 		),
    48 	SConvertFrom32BitTest(
    49 		0x80000000, SRealX(0x801e0001,0x80000000,0x00000000), KErrNone
    50 		)
    51 	};
    52 
    53 const SConvertFrom32BitTest ConvertFromUintTests[] =
    54 	{
    55 	SConvertFrom32BitTest(
    56 		0, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
    57 		),
    58 	SConvertFrom32BitTest(
    59 		1, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
    60 		),
    61 	SConvertFrom32BitTest(
    62 		0xffffffff, SRealX(0x801e0000,0xffffffff,0x00000000), KErrNone
    63 		),
    64 	SConvertFrom32BitTest(
    65 		100, SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
    66 		),
    67 	SConvertFrom32BitTest(
    68 		-100, SRealX(0x801e0000,0xffffff9c,0x00000000), KErrNone
    69 		),
    70 	SConvertFrom32BitTest(
    71 		1073741824, SRealX(0x801d0000,0x80000000,0x00000000), KErrNone
    72 		),
    73 	SConvertFrom32BitTest(
    74 		2147483647, SRealX(0x801d0000,0xfffffffe,0x00000000), KErrNone
    75 		),
    76 	SConvertFrom32BitTest(
    77 		-2147483647, SRealX(0x801e0000,0x80000001,0x00000000), KErrNone
    78 		),
    79 	SConvertFrom32BitTest(
    80 		0x80000000, SRealX(0x801e0000,0x80000000,0x00000000), KErrNone
    81 		)
    82 	};
    83 
    84 const SConvertFrom32BitTest ConvertFromFloatTests[] =
    85 	{
    86 	SConvertFrom32BitTest(
    87 		0x00000000, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
    88 		),
    89 	SConvertFrom32BitTest(
    90 		0x80000000, SRealX(0x00000001,0x00000000,0x00000000), KErrNone
    91 		),
    92 	SConvertFrom32BitTest(
    93 		0x3f800000, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
    94 		),
    95 	SConvertFrom32BitTest(
    96 		0xbf800000, SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
    97 		),
    98 	SConvertFrom32BitTest(
    99 		0x3fb504f3, SRealX(0x7fff0000,0xb504f300,0x00000000), KErrNone
   100 		),
   101 	SConvertFrom32BitTest(
   102 		0xbfb504f3, SRealX(0x7fff0001,0xb504f300,0x00000000), KErrNone
   103 		),
   104 	SConvertFrom32BitTest(
   105 		0x7f3504f3, SRealX(0x807e0000,0xb504f300,0x00000000), KErrNone
   106 		),
   107 	SConvertFrom32BitTest(
   108 		0xff3504f3, SRealX(0x807e0001,0xb504f300,0x00000000), KErrNone
   109 		),
   110 #ifndef __VC32__
   111 	SConvertFrom32BitTest(
   112 		0x7fb504f3, SRealX(0xffff0000,0xb504f300,0x00000000), KErrArgument
   113 		),
   114 	SConvertFrom32BitTest(
   115 		0xffb504f3, SRealX(0xffff0001,0xb504f300,0x00000000), KErrArgument
   116 		),
   117 #endif
   118 	SConvertFrom32BitTest(
   119 		0x7f800000, SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
   120 		),
   121 	SConvertFrom32BitTest(
   122 		0xff800000, SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
   123 		),
   124 	SConvertFrom32BitTest(
   125 		0x00ffffff, SRealX(0x7f810000,0xffffff00,0x00000000), KErrNone
   126 		),
   127 	SConvertFrom32BitTest(
   128 		0x80ffffff, SRealX(0x7f810001,0xffffff00,0x00000000), KErrNone
   129 		),
   130 	SConvertFrom32BitTest(
   131 		0x007fffff, SRealX(0x7f800000,0xfffffe00,0x00000000), KErrNone
   132 		),
   133 	SConvertFrom32BitTest(
   134 		0x807fffff, SRealX(0x7f800001,0xfffffe00,0x00000000), KErrNone
   135 		),
   136 	SConvertFrom32BitTest(
   137 		0x003fffff, SRealX(0x7f7f0000,0xfffffc00,0x00000000), KErrNone
   138 		),
   139 	SConvertFrom32BitTest(
   140 		0x803fffff, SRealX(0x7f7f0001,0xfffffc00,0x00000000), KErrNone
   141 		),
   142 	SConvertFrom32BitTest(
   143 		0x00000001, SRealX(0x7f6a0000,0x80000000,0x00000000), KErrNone
   144 		),
   145 	SConvertFrom32BitTest(
   146 		0x80000001, SRealX(0x7f6a0001,0x80000000,0x00000000), KErrNone
   147 		)
   148 	};
   149 
   150 const SConvertFrom64BitTest ConvertFromInt64Tests[] =
   151 	{
   152 	SConvertFrom64BitTest(
   153 		MAKE_TINT64(0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), KErrNone
   154 		),
   155 	SConvertFrom64BitTest(
   156 		MAKE_TINT64(0x00000000,0x00000001), SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
   157 		),
   158 	SConvertFrom64BitTest(
   159 		MAKE_TINT64(0xffffffff,0xffffffff), SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
   160 		),
   161 	SConvertFrom64BitTest(
   162 		MAKE_TINT64(0x00000000,0x80000000), SRealX(0x801e0000,0x80000000,0x00000000), KErrNone
   163 		),
   164 	SConvertFrom64BitTest(
   165 		MAKE_TINT64(0x00000001,0x00000000), SRealX(0x801f0000,0x80000000,0x00000000), KErrNone
   166 		),
   167 	SConvertFrom64BitTest(
   168 		MAKE_TINT64(0x0000000b,0x504f334f), SRealX(0x80220000,0xb504f334,0xf0000000), KErrNone
   169 		),
   170 	SConvertFrom64BitTest(
   171 		MAKE_TINT64(0xc0000000,0x00000001), SRealX(0x803c0001,0xffffffff,0xfffffffc), KErrNone
   172 		),
   173 	SConvertFrom64BitTest(
   174 		MAKE_TINT64(0x80000000,0x00000001), SRealX(0x803d0001,0xffffffff,0xfffffffe), KErrNone
   175 		),
   176 	SConvertFrom64BitTest(
   177 		MAKE_TINT64(0x7fffffff,0xffffffff), SRealX(0x803d0000,0xffffffff,0xfffffffe), KErrNone
   178 		),
   179 	SConvertFrom64BitTest(
   180 		MAKE_TINT64(0x80000000,0x00000000), SRealX(0x803e0001,0x80000000,0x00000000), KErrNone
   181 		)
   182 	};
   183 
   184 const SConvertFrom64BitTest ConvertFromDoubleTests[] =
   185 	{
   186 	SConvertFrom64BitTest(
   187 		MAKE_TINT64(0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), KErrNone
   188 		),
   189 	SConvertFrom64BitTest(
   190 		MAKE_TINT64(0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000), KErrNone
   191 		),
   192 	SConvertFrom64BitTest(
   193 		MAKE_TINT64(0x3ff00000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
   194 		),
   195 	SConvertFrom64BitTest(
   196 		MAKE_TINT64(0xbff00000,0x00000000), SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
   197 		),
   198 	SConvertFrom64BitTest(
   199 		MAKE_TINT64(0x3ff6a09e,0x667f3bcd), SRealX(0x7fff0000,0xb504f333,0xf9de6800), KErrNone
   200 		),
   201 	SConvertFrom64BitTest(
   202 		MAKE_TINT64(0xbff6a09e,0x667f3bcd), SRealX(0x7fff0001,0xb504f333,0xf9de6800), KErrNone
   203 		),
   204 	SConvertFrom64BitTest(
   205 		MAKE_TINT64(0x40590000,0x00000000), SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
   206 		),
   207 	SConvertFrom64BitTest(
   208 		MAKE_TINT64(0xc0590000,0x00000000), SRealX(0x80050001,0xc8000000,0x00000000), KErrNone
   209 		),
   210 	SConvertFrom64BitTest(
   211 		MAKE_TINT64(0x7fe6a09e,0x667f3bcd), SRealX(0x83fe0000,0xb504f333,0xf9de6800), KErrNone
   212 		),
   213 	SConvertFrom64BitTest(
   214 		MAKE_TINT64(0xffe6a09e,0x667f3bcd), SRealX(0x83fe0001,0xb504f333,0xf9de6800), KErrNone
   215 		),
   216 #ifndef __VC32__
   217 	SConvertFrom64BitTest(
   218 		MAKE_TINT64(0x7ff6a09e,0x667f3bcd), SRealX(0xffff0000,0xb504f333,0xf9de6800), KErrArgument
   219 		),
   220 	SConvertFrom64BitTest(
   221 		MAKE_TINT64(0xfff6a09e,0x667f3bcd), SRealX(0xffff0001,0xb504f333,0xf9de6800), KErrArgument
   222 		),
   223 	SConvertFrom64BitTest(
   224 		MAKE_TINT64(0x7ff00000,0x00000001), SRealX(0xffff0000,0x80000000,0x00000800), KErrArgument
   225 		),
   226 	SConvertFrom64BitTest(
   227 		MAKE_TINT64(0xfff00000,0x00000001), SRealX(0xffff0001,0x80000000,0x00000800), KErrArgument
   228 		),
   229 #endif
   230 	SConvertFrom64BitTest(
   231 		MAKE_TINT64(0x7ff00000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
   232 		),
   233 	SConvertFrom64BitTest(
   234 		MAKE_TINT64(0xfff00000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
   235 		),
   236 	SConvertFrom64BitTest(
   237 		MAKE_TINT64(0x001fffff,0xffffffff), SRealX(0x7c010000,0xffffffff,0xfffff800), KErrNone
   238 		),
   239 	SConvertFrom64BitTest(
   240 		MAKE_TINT64(0x801fffff,0xffffffff), SRealX(0x7c010001,0xffffffff,0xfffff800), KErrNone
   241 		),
   242 	SConvertFrom64BitTest(
   243 		MAKE_TINT64(0x000fffff,0xffffffff), SRealX(0x7c000000,0xffffffff,0xfffff000), KErrNone
   244 		),
   245 	SConvertFrom64BitTest(
   246 		MAKE_TINT64(0x800fffff,0xffffffff), SRealX(0x7c000001,0xffffffff,0xfffff000), KErrNone
   247 		),
   248 	SConvertFrom64BitTest(
   249 		MAKE_TINT64(0x0007ffff,0xffffffff), SRealX(0x7bff0000,0xffffffff,0xffffe000), KErrNone
   250 		),
   251 	SConvertFrom64BitTest(
   252 		MAKE_TINT64(0x8007ffff,0xffffffff), SRealX(0x7bff0001,0xffffffff,0xffffe000), KErrNone
   253 		),
   254 	SConvertFrom64BitTest(
   255 		MAKE_TINT64(0x0003ffff,0xffffffff), SRealX(0x7bfe0000,0xffffffff,0xffffc000), KErrNone
   256 		),
   257 	SConvertFrom64BitTest(
   258 		MAKE_TINT64(0x8003ffff,0xffffffff), SRealX(0x7bfe0001,0xffffffff,0xffffc000), KErrNone
   259 		),
   260 	SConvertFrom64BitTest(
   261 		MAKE_TINT64(0x00000000,0xffffffff), SRealX(0x7bec0000,0xffffffff,0x00000000), KErrNone
   262 		),
   263 	SConvertFrom64BitTest(
   264 		MAKE_TINT64(0x80000000,0xffffffff), SRealX(0x7bec0001,0xffffffff,0x00000000), KErrNone
   265 		),
   266 	SConvertFrom64BitTest(
   267 		MAKE_TINT64(0x00000000,0x7fffffff), SRealX(0x7beb0000,0xfffffffe,0x00000000), KErrNone
   268 		),
   269 	SConvertFrom64BitTest(
   270 		MAKE_TINT64(0x80000000,0x7fffffff), SRealX(0x7beb0001,0xfffffffe,0x00000000), KErrNone
   271 		),
   272 	SConvertFrom64BitTest(
   273 		MAKE_TINT64(0x00000000,0x0b504f33), SRealX(0x7be80000,0xb504f330,0x00000000), KErrNone
   274 		),
   275 	SConvertFrom64BitTest(
   276 		MAKE_TINT64(0x80000000,0x0b504f33), SRealX(0x7be80001,0xb504f330,0x00000000), KErrNone
   277 		),
   278 	SConvertFrom64BitTest(
   279 		MAKE_TINT64(0x0000b504,0xf333f9de), SRealX(0x7bfc0000,0xb504f333,0xf9de0000), KErrNone
   280 		),
   281 	SConvertFrom64BitTest(
   282 		MAKE_TINT64(0x8000b504,0xf333f9de), SRealX(0x7bfc0001,0xb504f333,0xf9de0000), KErrNone
   283 		),
   284 	SConvertFrom64BitTest(
   285 		MAKE_TINT64(0x00000000,0x00000001), SRealX(0x7bcd0000,0x80000000,0x00000000), KErrNone
   286 		),
   287 	SConvertFrom64BitTest(
   288 		MAKE_TINT64(0x80000000,0x00000001), SRealX(0x7bcd0001,0x80000000,0x00000000), KErrNone
   289 		)
   290 	};
   291 
   292 const SConvertTo32BitTest ConvertToIntTests[] =
   293 	{
   294 	SConvertTo32BitTest(
   295 		SRealX(0xffff0001,0x80000000,0x00000001), 0x00000000, KErrNone
   296 		),
   297 	SConvertTo32BitTest(
   298 		SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
   299 		),
   300 	SConvertTo32BitTest(
   301 		SRealX(0x00000001,0x00000000,0x00000000), 0x00000000, KErrNone
   302 		),
   303 	SConvertTo32BitTest(
   304 		SRealX(0x7ffe0000,0xffffffff,0xffffffff), 0x00000000, KErrNone
   305 		),
   306 	SConvertTo32BitTest(
   307 		SRealX(0x7ffe0001,0xffffffff,0xffffffff), 0x00000000, KErrNone
   308 		),
   309 	SConvertTo32BitTest(
   310 		SRealX(0x00010000,0x80000000,0x00000000), 0x00000000, KErrNone
   311 		),
   312 	SConvertTo32BitTest(
   313 		SRealX(0x00010001,0x80000000,0x00000000), 0x00000000, KErrNone
   314 		),
   315 	SConvertTo32BitTest(
   316 		SRealX(0x7fff0000,0x80000000,0x00000000), 0x00000001, KErrNone
   317 		),
   318 	SConvertTo32BitTest(
   319 		SRealX(0x7fff0001,0x80000000,0x00000000), 0xffffffff, KErrNone
   320 		),
   321 	SConvertTo32BitTest(
   322 		SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x00000001, KErrNone
   323 		),
   324 	SConvertTo32BitTest(
   325 		SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0xffffffff, KErrNone
   326 		),
   327 	SConvertTo32BitTest(
   328 		SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x00000003, KErrNone
   329 		),
   330 	SConvertTo32BitTest(
   331 		SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0xfffffffd, KErrNone
   332 		),
   333 	SConvertTo32BitTest(
   334 		SRealX(0x80050000,0xc8000000,0x00000000), 0x00000064, KErrNone
   335 		),
   336 	SConvertTo32BitTest(
   337 		SRealX(0x801d0000,0xfffffffc,0x00000000), 0x7ffffffe, KErrNone
   338 		),
   339 	SConvertTo32BitTest(
   340 		SRealX(0x801d0001,0xfffffffc,0x00000000), 0x80000002, KErrNone
   341 		),
   342 	SConvertTo32BitTest(
   343 		SRealX(0x801d0000,0xfffffffe,0x00000000), 0x7fffffff, KErrNone
   344 		),
   345 	SConvertTo32BitTest(
   346 		SRealX(0x801d0001,0xfffffffe,0x00000000), 0x80000001, KErrNone
   347 		),
   348 	SConvertTo32BitTest(
   349 		SRealX(0x801e0001,0x80000000,0x00000000), 0x80000000, KErrNone
   350 		),
   351 	SConvertTo32BitTest(
   352 		SRealX(0x801e0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
   353 		),
   354 	SConvertTo32BitTest(
   355 		SRealX(0x801f0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
   356 		),
   357 	SConvertTo32BitTest(
   358 		SRealX(0x803f0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
   359 		),
   360 	SConvertTo32BitTest(
   361 		SRealX(0xfffe0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
   362 		),
   363 	SConvertTo32BitTest(
   364 		SRealX(0xffff0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
   365 		),
   366 	SConvertTo32BitTest(
   367 		SRealX(0x801f0001,0x80000000,0x00000000), 0x80000000, KErrNone
   368 		),
   369 	SConvertTo32BitTest(
   370 		SRealX(0x803f0001,0x80000000,0x00000000), 0x80000000, KErrNone
   371 		),
   372 	SConvertTo32BitTest(
   373 		SRealX(0xfffe0001,0x80000000,0x00000000), 0x80000000, KErrNone
   374 		),
   375 	SConvertTo32BitTest(
   376 		SRealX(0xffff0001,0x80000000,0x00000000), 0x80000000, KErrNone
   377 		),
   378 	SConvertTo32BitTest(
   379 		SRealX(0xffff0000,0x80000000,0x00000001), 0x00000000, KErrNone
   380 		),
   381 	SConvertTo32BitTest(
   382 		SRealX(0xffff0000,0xc0000000,0x00000000), 0x00000000, KErrNone
   383 		),
   384 	SConvertTo32BitTest(
   385 		SRealX(0xffff0001,0xc0000000,0x00000000), 0x00000000, KErrNone
   386 		)
   387 	};
   388 
   389 const SConvertTo32BitTest ConvertToUintTests[] =
   390 	{
   391 	SConvertTo32BitTest(
   392 		SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
   393 		),
   394 	SConvertTo32BitTest(
   395 		SRealX(0x00000001,0x00000000,0x00000000), 0x00000000, KErrNone
   396 		),
   397 	SConvertTo32BitTest(
   398 		SRealX(0x7ffe0000,0xffffffff,0xffffffff), 0x00000000, KErrNone
   399 		),
   400 	SConvertTo32BitTest(
   401 		SRealX(0x7ffe0001,0xffffffff,0xffffffff), 0x00000000, KErrNone
   402 		),
   403 	SConvertTo32BitTest(
   404 		SRealX(0x00010000,0x80000000,0x00000000), 0x00000000, KErrNone
   405 		),
   406 	SConvertTo32BitTest(
   407 		SRealX(0x00010001,0x80000000,0x00000000), 0x00000000, KErrNone
   408 		),
   409 	SConvertTo32BitTest(
   410 		SRealX(0x7fff0000,0x80000000,0x00000000), 0x00000001, KErrNone
   411 		),
   412 	SConvertTo32BitTest(
   413 		SRealX(0x7fff0001,0x80000000,0x00000000), 0x00000000, KErrNone
   414 		),
   415 	SConvertTo32BitTest(
   416 		SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x00000001, KErrNone
   417 		),
   418 	SConvertTo32BitTest(
   419 		SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0x00000000, KErrNone
   420 		),
   421 	SConvertTo32BitTest(
   422 		SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x00000003, KErrNone
   423 		),
   424 	SConvertTo32BitTest(
   425 		SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0x00000000, KErrNone
   426 		),
   427 	SConvertTo32BitTest(
   428 		SRealX(0x80050000,0xc8000000,0x00000000), 0x00000064, KErrNone
   429 		),
   430 	SConvertTo32BitTest(
   431 		SRealX(0x801d0000,0xfffffffc,0x00000000), 0x7ffffffe, KErrNone
   432 		),
   433 	SConvertTo32BitTest(
   434 		SRealX(0x801d0001,0xfffffffc,0x00000000), 0x00000000, KErrNone
   435 		),
   436 	SConvertTo32BitTest(
   437 		SRealX(0x801d0000,0xfffffffe,0x00000000), 0x7fffffff, KErrNone
   438 		),
   439 	SConvertTo32BitTest(
   440 		SRealX(0x801d0001,0xfffffffe,0x00000000), 0x00000000, KErrNone
   441 		),
   442 	SConvertTo32BitTest(
   443 		SRealX(0x801e0001,0x80000000,0x00000000), 0x00000000, KErrNone
   444 		),
   445 	SConvertTo32BitTest(
   446 		SRealX(0x801e0000,0x80000000,0x00000000), 0x80000000, KErrNone
   447 		),
   448 	SConvertTo32BitTest(
   449 		SRealX(0x801e0000,0xc90fdaa2,0x00000000), 0xc90fdaa2, KErrNone
   450 		),
   451 	SConvertTo32BitTest(
   452 		SRealX(0x801f0000,0x80000000,0x00000000), 0xffffffff, KErrNone
   453 		),
   454 	SConvertTo32BitTest(
   455 		SRealX(0x803f0000,0x80000000,0x00000000), 0xffffffff, KErrNone
   456 		),
   457 	SConvertTo32BitTest(
   458 		SRealX(0xfffe0000,0x80000000,0x00000000), 0xffffffff, KErrNone
   459 		),
   460 	SConvertTo32BitTest(
   461 		SRealX(0xffff0000,0x80000000,0x00000000), 0xffffffff, KErrNone
   462 		),
   463 	SConvertTo32BitTest(
   464 		SRealX(0x801f0001,0x80000000,0x00000000), 0x00000000, KErrNone
   465 		),
   466 	SConvertTo32BitTest(
   467 		SRealX(0x803f0001,0x80000000,0x00000000), 0x00000000, KErrNone
   468 		),
   469 	SConvertTo32BitTest(
   470 		SRealX(0xfffe0001,0x80000000,0x00000000), 0x00000000, KErrNone
   471 		),
   472 	SConvertTo32BitTest(
   473 		SRealX(0xffff0001,0x80000000,0x00000000), 0x00000000, KErrNone
   474 		),
   475 	SConvertTo32BitTest(
   476 		SRealX(0xffff0001,0x80000000,0x00000001), 0x00000000, KErrNone
   477 		),
   478 	SConvertTo32BitTest(
   479 		SRealX(0xffff0000,0x80000000,0x00000001), 0x00000000, KErrNone
   480 		),
   481 	SConvertTo32BitTest(
   482 		SRealX(0xffff0000,0xc0000000,0x00000000), 0x00000000, KErrNone
   483 		),
   484 	SConvertTo32BitTest(
   485 		SRealX(0xffff0001,0xc0000000,0x00000000), 0x00000000, KErrNone
   486 		)
   487 	};
   488 
   489 const SConvertTo64BitTest ConvertToInt64Tests[] =
   490 	{
   491 	SConvertTo64BitTest(
   492 		SRealX(0x801e0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x80000000), KErrNone
   493 		),
   494 	SConvertTo64BitTest(
   495 		SRealX(0x00000000,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   496 		),
   497 	SConvertTo64BitTest(
   498 		SRealX(0x00000001,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   499 		),
   500 	SConvertTo64BitTest(
   501 		SRealX(0x7ffe0000,0xffffffff,0xffffffff), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   502 		),
   503 	SConvertTo64BitTest(
   504 		SRealX(0x7ffe0001,0xffffffff,0xffffffff), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   505 		),
   506 	SConvertTo64BitTest(
   507 		SRealX(0x7fff0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
   508 		),
   509 	SConvertTo64BitTest(
   510 		SRealX(0x7fff0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0xffffffff), KErrNone
   511 		),
   512 	SConvertTo64BitTest(
   513 		SRealX(0x7fff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000001), KErrNone
   514 		),
   515 	SConvertTo64BitTest(
   516 		SRealX(0x7fff0001,0xb504f333,0xf9de6484), MAKE_TINT64(0xffffffff,0xffffffff), KErrNone
   517 		),
   518 	SConvertTo64BitTest(
   519 		SRealX(0x80000000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x00000000,0x00000003), KErrNone
   520 		),
   521 	SConvertTo64BitTest(
   522 		SRealX(0x80000001,0xc90fdaa2,0x2168c235), MAKE_TINT64(0xffffffff,0xfffffffd), KErrNone
   523 		),
   524 	SConvertTo64BitTest(
   525 		SRealX(0x80050000,0xc8000000,0x00000000), MAKE_TINT64(0x00000000,0x00000064), KErrNone
   526 		),
   527 	SConvertTo64BitTest(
   528 		SRealX(0x80050001,0xc8000000,0x00000000), MAKE_TINT64(0xffffffff,0xffffff9c), KErrNone
   529 		),
   530 	SConvertTo64BitTest(
   531 		SRealX(0x801d0000,0xfffffffc,0x00000000), MAKE_TINT64(0x00000000,0x7ffffffe), KErrNone
   532 		),
   533 	SConvertTo64BitTest(
   534 		SRealX(0x801d0001,0xfffffffc,0x00000000), MAKE_TINT64(0xffffffff,0x80000002), KErrNone
   535 		),
   536 	SConvertTo64BitTest(
   537 		SRealX(0x801d0000,0xfffffffe,0x00000000), MAKE_TINT64(0x00000000,0x7fffffff), KErrNone
   538 		),
   539 	SConvertTo64BitTest(
   540 		SRealX(0x801d0001,0xfffffffe,0x00000000), MAKE_TINT64(0xffffffff,0x80000001), KErrNone
   541 		),
   542 	SConvertTo64BitTest(
   543 		SRealX(0x801e0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0x80000000), KErrNone
   544 		),
   545 	SConvertTo64BitTest(
   546 		SRealX(0x801f0000,0x80000000,0x00000000), MAKE_TINT64(0x00000001,0x00000000), KErrNone
   547 		),
   548 	SConvertTo64BitTest(
   549 		SRealX(0x801f0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0x00000000), KErrNone
   550 		),
   551 	SConvertTo64BitTest(
   552 		SRealX(0x801f0000,0xcccccccc,0xcccccccd), MAKE_TINT64(0x00000001,0x99999999), KErrNone
   553 		),
   554 	SConvertTo64BitTest(
   555 		SRealX(0x801f0001,0xcccccccc,0xcccccccd), MAKE_TINT64(0xfffffffe,0x66666667), KErrNone
   556 		),
   557 	SConvertTo64BitTest(
   558 		SRealX(0x80220000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000000b,0x504f333f), KErrNone
   559 		),
   560 	SConvertTo64BitTest(
   561 		SRealX(0x80260000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000000b5,0x04f333f9), KErrNone
   562 		),
   563 	SConvertTo64BitTest(
   564 		SRealX(0x803d0000,0xffffffff,0xfffffffc), MAKE_TINT64(0x7fffffff,0xfffffffe), KErrNone
   565 		),
   566 	SConvertTo64BitTest(
   567 		SRealX(0x803d0001,0xffffffff,0xfffffffc), MAKE_TINT64(0x80000000,0x00000002), KErrNone
   568 		),
   569 	SConvertTo64BitTest(
   570 		SRealX(0x803d0000,0xffffffff,0xfffffffe), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
   571 		),
   572 	SConvertTo64BitTest(
   573 		SRealX(0x803d0001,0xffffffff,0xfffffffe), MAKE_TINT64(0x80000000,0x00000001), KErrNone
   574 		),
   575 	SConvertTo64BitTest(
   576 		SRealX(0x803e0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
   577 		),
   578 	SConvertTo64BitTest(
   579 		SRealX(0x803e0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
   580 		),
   581 	SConvertTo64BitTest(
   582 		SRealX(0x803f0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
   583 		),
   584 	SConvertTo64BitTest(
   585 		SRealX(0x803f0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
   586 		),
   587 	SConvertTo64BitTest(
   588 		SRealX(0xfffe0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
   589 		),
   590 	SConvertTo64BitTest(
   591 		SRealX(0xfffe0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
   592 		),
   593 	SConvertTo64BitTest(
   594 		SRealX(0xffff0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
   595 		),
   596 	SConvertTo64BitTest(
   597 		SRealX(0xffff0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
   598 		),
   599 	SConvertTo64BitTest(
   600 		SRealX(0xffff0000,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   601 		),
   602 	SConvertTo64BitTest(
   603 		SRealX(0xffff0001,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   604 		),
   605 	SConvertTo64BitTest(
   606 		SRealX(0xffff0000,0xc0000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   607 		),
   608 	SConvertTo64BitTest(
   609 		SRealX(0xffff0001,0xc0000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   610 		)
   611 	};
   612 
   613 const SConvertTo32BitTest ConvertToFloatTests[] =
   614 	{
   615 	SConvertTo32BitTest(
   616 		SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
   617 		),
   618 	SConvertTo32BitTest(
   619 		SRealX(0x00000001,0x00000000,0x00000000), 0x80000000, KErrNone
   620 		),
   621 	SConvertTo32BitTest(
   622 		SRealX(0x7fff0000,0x80000000,0x00000000), 0x3f800000, KErrNone
   623 		),
   624 	SConvertTo32BitTest(
   625 		SRealX(0x7fff0001,0x80000000,0x00000000), 0xbf800000, KErrNone
   626 		),
   627 	SConvertTo32BitTest(
   628 		SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x3fb504f3, KErrNone
   629 		),
   630 	SConvertTo32BitTest(
   631 		SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0xbfb504f3, KErrNone
   632 		),
   633 	SConvertTo32BitTest(
   634 		SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x40490fdb, KErrNone
   635 		),
   636 	SConvertTo32BitTest(
   637 		SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0xc0490fdb, KErrNone
   638 		),
   639 	SConvertTo32BitTest(
   640 		SRealX(0x7fff0000,0xffffff00,0x00000000), 0x3fffffff, KErrNone
   641 		),
   642 	SConvertTo32BitTest(
   643 		SRealX(0x7fff0000,0xffffff80,0x00000000), 0x40000000, KErrNone
   644 		),
   645 	SConvertTo32BitTest(
   646 		SRealX(0x7fff0000,0xfffffe80,0x00000000), 0x3ffffffe, KErrNone
   647 		),
   648 	SConvertTo32BitTest(
   649 		SRealX(0x7fff0000,0xfffffe80,0x00000001), 0x3fffffff, KErrNone
   650 		),
   651 	SConvertTo32BitTest(
   652 		SRealX(0x7fff0100,0xffffff80,0x00000000), 0x40000000, KErrNone
   653 		),
   654 	SConvertTo32BitTest(
   655 		SRealX(0x7fff0200,0xffffff80,0x00000000), 0x3fffffff, KErrNone
   656 		),
   657 	SConvertTo32BitTest(
   658 		SRealX(0x7fff0100,0xfffffe80,0x00000000), 0x3fffffff, KErrNone
   659 		),
   660 	SConvertTo32BitTest(
   661 		SRealX(0x7fff0200,0xfffffe80,0x00000000), 0x3ffffffe, KErrNone
   662 		),
   663 	SConvertTo32BitTest(
   664 		SRealX(0x807e0000,0x80000000,0x00000000), 0x7f000000, KErrNone
   665 		),
   666 	SConvertTo32BitTest(
   667 		SRealX(0x807f0000,0x80000000,0x00000000), 0x7f800000, KErrOverflow
   668 		),
   669 	SConvertTo32BitTest(
   670 		SRealX(0x807f0001,0x80000000,0x00000000), 0xff800000, KErrOverflow
   671 		),
   672 	SConvertTo32BitTest(
   673 		SRealX(0x807e0000,0xffffff80,0x00000000), 0x7f800000, KErrOverflow
   674 		),
   675 	SConvertTo32BitTest(
   676 		SRealX(0x807e0100,0xffffff80,0x00000000), 0x7f800000, KErrOverflow
   677 		),
   678 	SConvertTo32BitTest(
   679 		SRealX(0x807e0200,0xffffff80,0x00000000), 0x7f7fffff, KErrNone
   680 		),
   681 	SConvertTo32BitTest(
   682 		SRealX(0x807f0000,0xb504f333,0xf9de6484), 0x7f800000, KErrOverflow
   683 		),
   684 	SConvertTo32BitTest(
   685 		SRealX(0xffff0000,0x80000000,0x00000000), 0x7f800000, KErrOverflow
   686 		),
   687 	SConvertTo32BitTest(
   688 		SRealX(0xffff0001,0x80000000,0x00000000), 0xff800000, KErrOverflow
   689 		),
   690 	SConvertTo32BitTest(
   691 		SRealX(0xffff0000,0xc504f333,0xf9de6484), 0x7fc504f3, KErrArgument
   692 		),
   693 	SConvertTo32BitTest(
   694 		SRealX(0xffff0000,0xc90fdaa2,0x2168c235), 0x7fc90fda, KErrArgument
   695 		),
   696 	SConvertTo32BitTest(
   697 		SRealX(0xffff0001,0xc504f333,0xf9de6484), 0xffc504f3, KErrArgument
   698 		),
   699 	SConvertTo32BitTest(
   700 		SRealX(0x7f810000,0xb504f333,0xf9de6484), 0x00b504f3, KErrNone
   701 		),
   702 	SConvertTo32BitTest(
   703 		SRealX(0x7f810000,0xb504f333,0xf9de6484), 0x00b504f3, KErrNone
   704 		),
   705 	SConvertTo32BitTest(
   706 		SRealX(0x7f800000,0xb504f333,0xf9de6484), 0x005a827a, KErrNone
   707 		),
   708 	SConvertTo32BitTest(
   709 		SRealX(0x7f800000,0xffffffff,0xffffffff), 0x00800000, KErrNone
   710 		),
   711 	SConvertTo32BitTest(
   712 		SRealX(0x7f7f0000,0xb504f333,0xf9de6484), 0x002d413d, KErrNone
   713 		),
   714 	SConvertTo32BitTest(
   715 		SRealX(0x7f7d0000,0xb504f333,0xf9de6484), 0x000b504f, KErrNone
   716 		),
   717 	SConvertTo32BitTest(
   718 		SRealX(0x7f790000,0xb504f333,0xf9de6484), 0x0000b505, KErrNone
   719 		),
   720 	SConvertTo32BitTest(
   721 		SRealX(0x7f750000,0xb504f333,0xf9de6484), 0x00000b50, KErrNone
   722 		),
   723 	SConvertTo32BitTest(
   724 		SRealX(0x7f710000,0xb504f333,0xf9de6484), 0x000000b5, KErrNone
   725 		),
   726 	SConvertTo32BitTest(
   727 		SRealX(0x7f6d0000,0xb504f333,0xf9de6484), 0x0000000b, KErrNone
   728 		),
   729 	SConvertTo32BitTest(
   730 		SRealX(0x7f6a0000,0xc504f333,0xf9de6484), 0x00000002, KErrNone
   731 		),
   732 	SConvertTo32BitTest(
   733 		SRealX(0x7f690000,0xc504f333,0xf9de6484), 0x00000001, KErrNone
   734 		),
   735 	SConvertTo32BitTest(
   736 		SRealX(0x7f680000,0xc504f333,0xf9de6484), 0x00000000, KErrUnderflow
   737 		),
   738 	SConvertTo32BitTest(
   739 		SRealX(0x7f680001,0xc504f333,0xf9de6484), 0x80000000, KErrUnderflow
   740 		),
   741 	SConvertTo32BitTest(
   742 		SRealX(0x7f6a0000,0x80000000,0x00000000), 0x00000001, KErrNone
   743 		),
   744 	SConvertTo32BitTest(
   745 		SRealX(0x7f690000,0x80000000,0x00000000), 0x00000000, KErrUnderflow
   746 		),
   747 	SConvertTo32BitTest(
   748 		SRealX(0x7f690000,0x80000000,0x00000001), 0x00000001, KErrNone
   749 		),
   750 	SConvertTo32BitTest(
   751 		SRealX(0x7f690100,0x80000000,0x00000000), 0x00000001, KErrNone
   752 		),
   753 	SConvertTo32BitTest(
   754 		SRealX(0x7f690200,0x80000000,0x00000000), 0x00000000, KErrUnderflow
   755 		)
   756 	};
   757 
   758 const SConvertTo64BitTest ConvertToDoubleTests[] =
   759 	{
   760 	SConvertTo64BitTest(
   761 		SRealX(0x00000000,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
   762 		),
   763 	SConvertTo64BitTest(
   764 		SRealX(0x00000001,0x00000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
   765 		),
   766 	SConvertTo64BitTest(
   767 		SRealX(0x7fff0000,0x80000000,0x00000000), MAKE_TINT64(0x3ff00000,0x00000000), KErrNone
   768 		),
   769 	SConvertTo64BitTest(
   770 		SRealX(0x7fff0001,0x80000000,0x00000000), MAKE_TINT64(0xbff00000,0x00000000), KErrNone
   771 		),
   772 	SConvertTo64BitTest(
   773 		SRealX(0x7fff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x3ff6a09e,0x667f3bcd), KErrNone
   774 		),
   775 	SConvertTo64BitTest(
   776 		SRealX(0x7fff0001,0xb504f333,0xf9de6484), MAKE_TINT64(0xbff6a09e,0x667f3bcd), KErrNone
   777 		),
   778 	SConvertTo64BitTest(
   779 		SRealX(0x80000000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x400921fb,0x54442d18), KErrNone
   780 		),
   781 	SConvertTo64BitTest(
   782 		SRealX(0x80000001,0xc90fdaa2,0x2168c235), MAKE_TINT64(0xc00921fb,0x54442d18), KErrNone
   783 		),
   784 	SConvertTo64BitTest(
   785 		SRealX(0x7fff0000,0xffffffff,0xfffff800), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
   786 		),
   787 	SConvertTo64BitTest(
   788 		SRealX(0x7fff0000,0xffffffff,0xfffffc00), MAKE_TINT64(0x40000000,0x00000000), KErrNone
   789 		),
   790 	SConvertTo64BitTest(
   791 		SRealX(0x7fff0000,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xfffffffe), KErrNone
   792 		),
   793 	SConvertTo64BitTest(
   794 		SRealX(0x7fff0000,0xffffffff,0xfffff401), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
   795 		),
   796 	SConvertTo64BitTest(
   797 		SRealX(0x7fff0100,0xffffffff,0xfffffc00), MAKE_TINT64(0x40000000,0x00000000), KErrNone
   798 		),
   799 	SConvertTo64BitTest(
   800 		SRealX(0x7fff0200,0xffffffff,0xfffffc00), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
   801 		),
   802 	SConvertTo64BitTest(
   803 		SRealX(0x7fff0100,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
   804 		),
   805 	SConvertTo64BitTest(
   806 		SRealX(0x7fff0200,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xfffffffe), KErrNone
   807 		),
   808 	SConvertTo64BitTest(
   809 		SRealX(0x83fe0000,0x80000000,0x00000000), MAKE_TINT64(0x7fe00000,0x00000000), KErrNone
   810 		),
   811 	SConvertTo64BitTest(
   812 		SRealX(0x83ff0000,0x80000000,0x00000000), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
   813 		),
   814 	SConvertTo64BitTest(
   815 		SRealX(0x83ff0001,0x80000000,0x00000000), MAKE_TINT64(0xfff00000,0x00000000), KErrOverflow
   816 		),
   817 	SConvertTo64BitTest(
   818 		SRealX(0x83fe0000,0xffffffff,0xfffffc00), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
   819 		),
   820 	SConvertTo64BitTest(
   821 		SRealX(0x83fe0100,0xffffffff,0xfffffc00), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
   822 		),
   823 	SConvertTo64BitTest(
   824 		SRealX(0x83fe0200,0xffffffff,0xfffffc00), MAKE_TINT64(0x7fefffff,0xffffffff), KErrNone
   825 		),
   826 	SConvertTo64BitTest(
   827 		SRealX(0x83ff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
   828 		),
   829 	SConvertTo64BitTest(
   830 		SRealX(0xffff0000,0x80000000,0x00000000), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
   831 		),
   832 	SConvertTo64BitTest(
   833 		SRealX(0xffff0001,0x80000000,0x00000000), MAKE_TINT64(0xfff00000,0x00000000), KErrOverflow
   834 		),
   835 	SConvertTo64BitTest(
   836 		SRealX(0xffff0000,0xf504f333,0xf9de6484), MAKE_TINT64(0x7ffea09e,0x667f3bcc), KErrArgument
   837 		),
   838 	SConvertTo64BitTest(
   839 		SRealX(0xffff0001,0xf504f333,0xf9de6484), MAKE_TINT64(0xfffea09e,0x667f3bcc), KErrArgument
   840 		),
   841 	SConvertTo64BitTest(
   842 		SRealX(0xffff0000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x7ff921fb,0x54442d18), KErrArgument
   843 		),
   844 	SConvertTo64BitTest(
   845 		SRealX(0x7c010000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0016a09e,0x667f3bcd), KErrNone
   846 		),
   847 	SConvertTo64BitTest(
   848 		SRealX(0x7c000000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000b504f,0x333f9de6), KErrNone
   849 		),
   850 	SConvertTo64BitTest(
   851 		SRealX(0x7c000000,0xffffffff,0xffffffff), MAKE_TINT64(0x00100000,0x00000000), KErrNone
   852 		),
   853 	SConvertTo64BitTest(
   854 		SRealX(0x7bff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0005a827,0x999fcef3), KErrNone
   855 		),
   856 	SConvertTo64BitTest(
   857 		SRealX(0x7bfc0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000b504,0xf333f9de), KErrNone
   858 		),
   859 	SConvertTo64BitTest(
   860 		SRealX(0x7bf80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000b50,0x4f333f9e), KErrNone
   861 		),
   862 	SConvertTo64BitTest(
   863 		SRealX(0x7bf40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000000b5,0x04f333fa), KErrNone
   864 		),
   865 	SConvertTo64BitTest(
   866 		SRealX(0x7bf00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000000b,0x504f3340), KErrNone
   867 		),
   868 	SConvertTo64BitTest(
   869 		SRealX(0x7bec0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0xb504f334), KErrNone
   870 		),
   871 	SConvertTo64BitTest(
   872 		SRealX(0x7be80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0b504f33), KErrNone
   873 		),
   874 	SConvertTo64BitTest(
   875 		SRealX(0x7be40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00b504f3), KErrNone
   876 		),
   877 	SConvertTo64BitTest(
   878 		SRealX(0x7be00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x000b504f), KErrNone
   879 		),
   880 	SConvertTo64BitTest(
   881 		SRealX(0x7bdc0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0000b505), KErrNone
   882 		),
   883 	SConvertTo64BitTest(
   884 		SRealX(0x7bd80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000b50), KErrNone
   885 		),
   886 	SConvertTo64BitTest(
   887 		SRealX(0x7bd40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x000000b5), KErrNone
   888 		),
   889 	SConvertTo64BitTest(
   890 		SRealX(0x7bd00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0000000b), KErrNone
   891 		),
   892 	SConvertTo64BitTest(
   893 		SRealX(0x7bcd0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000002), KErrNone
   894 		),
   895 	SConvertTo64BitTest(
   896 		SRealX(0x7bcc0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000001), KErrNone
   897 		),
   898 	SConvertTo64BitTest(
   899 		SRealX(0x7bcb0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
   900 		),
   901 	SConvertTo64BitTest(
   902 		SRealX(0x7bcb0001,0xc504f333,0xf9de6484), MAKE_TINT64(0x80000000,0x00000000), KErrUnderflow
   903 		),
   904 	SConvertTo64BitTest(
   905 		SRealX(0x7bcd0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
   906 		),
   907 	SConvertTo64BitTest(
   908 		SRealX(0x7bcc0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
   909 		),
   910 	SConvertTo64BitTest(
   911 		SRealX(0x7bcc0000,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000001), KErrNone
   912 		),
   913 	SConvertTo64BitTest(
   914 		SRealX(0x7bcc0100,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
   915 		),
   916 	SConvertTo64BitTest(
   917 		SRealX(0x7bcc0200,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
   918 		)
   919 	};
   920 
   921 const SSpecialValueTest SpecialValueTests[] =
   922 	{
   923 	SSpecialValueTest(
   924 		SRealX(0x00000000,0x00000000,0x00000000), 9 /* 1001 */ ),
   925 	SSpecialValueTest(
   926 		SRealX(0x00000001,0x00000000,0x00000000), 9 /* 1001 */ ),
   927 	SSpecialValueTest(
   928 		SRealX(0x00010000,0x80000000,0x00000000), 1 /* 0001 */ ),
   929 	SSpecialValueTest(
   930 		SRealX(0x7fff0000,0x80000000,0x00000000), 1 /* 0001 */ ),
   931 	SSpecialValueTest(
   932 		SRealX(0xfffe0000,0x80000000,0x00000000), 1 /* 0001 */ ),
   933 	SSpecialValueTest(
   934 		SRealX(0xfffe0001,0x80000000,0x00000000), 1 /* 0001 */ ),
   935 	SSpecialValueTest(
   936 		SRealX(0xffff0000,0x80000000,0x00000000), 2 /* 0010 */ ),
   937 	SSpecialValueTest(
   938 		SRealX(0xffff0001,0x80000000,0x00000000), 2 /* 0010 */ ),
   939 	SSpecialValueTest(
   940 		SRealX(0xffff0000,0x80000000,0x00000001), 4 /* 0100 */ ),
   941 	SSpecialValueTest(
   942 		SRealX(0xffff0001,0x80000000,0x00000001), 4 /* 0100 */ ),
   943 	SSpecialValueTest(
   944 		SRealX(0xffff0000,0xc0000000,0x00000000), 4 /* 0100 */ ),
   945 	SSpecialValueTest(
   946 		SRealX(0xffff0001,0xc0000000,0x00000000), 4 /* 0100 */ )
   947 	};
   948 
   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);