1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/math/trealxd2.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,959 @@
1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// e32test\math\trealxd2.cpp
1.18 +// TREALXD2.CPP - Test data for TRealX
1.19 +//
1.20 +//
1.21 +
1.22 +
1.23 +#include "t_realxd.h"
1.24 +
1.25 +const SConvertFrom32BitTest ConvertFromIntTests[] =
1.26 + {
1.27 + SConvertFrom32BitTest(
1.28 + 0, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
1.29 + ),
1.30 + SConvertFrom32BitTest(
1.31 + 1, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
1.32 + ),
1.33 + SConvertFrom32BitTest(
1.34 + -1, SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
1.35 + ),
1.36 + SConvertFrom32BitTest(
1.37 + 100, SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
1.38 + ),
1.39 + SConvertFrom32BitTest(
1.40 + -100, SRealX(0x80050001,0xc8000000,0x00000000), KErrNone
1.41 + ),
1.42 + SConvertFrom32BitTest(
1.43 + 1073741824, SRealX(0x801d0000,0x80000000,0x00000000), KErrNone
1.44 + ),
1.45 + SConvertFrom32BitTest(
1.46 + 2147483647, SRealX(0x801d0000,0xfffffffe,0x00000000), KErrNone
1.47 + ),
1.48 + SConvertFrom32BitTest(
1.49 + -2147483647, SRealX(0x801d0001,0xfffffffe,0x00000000), KErrNone
1.50 + ),
1.51 + SConvertFrom32BitTest(
1.52 + 0x80000000, SRealX(0x801e0001,0x80000000,0x00000000), KErrNone
1.53 + )
1.54 + };
1.55 +
1.56 +const SConvertFrom32BitTest ConvertFromUintTests[] =
1.57 + {
1.58 + SConvertFrom32BitTest(
1.59 + 0, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
1.60 + ),
1.61 + SConvertFrom32BitTest(
1.62 + 1, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
1.63 + ),
1.64 + SConvertFrom32BitTest(
1.65 + 0xffffffff, SRealX(0x801e0000,0xffffffff,0x00000000), KErrNone
1.66 + ),
1.67 + SConvertFrom32BitTest(
1.68 + 100, SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
1.69 + ),
1.70 + SConvertFrom32BitTest(
1.71 + -100, SRealX(0x801e0000,0xffffff9c,0x00000000), KErrNone
1.72 + ),
1.73 + SConvertFrom32BitTest(
1.74 + 1073741824, SRealX(0x801d0000,0x80000000,0x00000000), KErrNone
1.75 + ),
1.76 + SConvertFrom32BitTest(
1.77 + 2147483647, SRealX(0x801d0000,0xfffffffe,0x00000000), KErrNone
1.78 + ),
1.79 + SConvertFrom32BitTest(
1.80 + -2147483647, SRealX(0x801e0000,0x80000001,0x00000000), KErrNone
1.81 + ),
1.82 + SConvertFrom32BitTest(
1.83 + 0x80000000, SRealX(0x801e0000,0x80000000,0x00000000), KErrNone
1.84 + )
1.85 + };
1.86 +
1.87 +const SConvertFrom32BitTest ConvertFromFloatTests[] =
1.88 + {
1.89 + SConvertFrom32BitTest(
1.90 + 0x00000000, SRealX(0x00000000,0x00000000,0x00000000), KErrNone
1.91 + ),
1.92 + SConvertFrom32BitTest(
1.93 + 0x80000000, SRealX(0x00000001,0x00000000,0x00000000), KErrNone
1.94 + ),
1.95 + SConvertFrom32BitTest(
1.96 + 0x3f800000, SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
1.97 + ),
1.98 + SConvertFrom32BitTest(
1.99 + 0xbf800000, SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
1.100 + ),
1.101 + SConvertFrom32BitTest(
1.102 + 0x3fb504f3, SRealX(0x7fff0000,0xb504f300,0x00000000), KErrNone
1.103 + ),
1.104 + SConvertFrom32BitTest(
1.105 + 0xbfb504f3, SRealX(0x7fff0001,0xb504f300,0x00000000), KErrNone
1.106 + ),
1.107 + SConvertFrom32BitTest(
1.108 + 0x7f3504f3, SRealX(0x807e0000,0xb504f300,0x00000000), KErrNone
1.109 + ),
1.110 + SConvertFrom32BitTest(
1.111 + 0xff3504f3, SRealX(0x807e0001,0xb504f300,0x00000000), KErrNone
1.112 + ),
1.113 +#ifndef __VC32__
1.114 + SConvertFrom32BitTest(
1.115 + 0x7fb504f3, SRealX(0xffff0000,0xb504f300,0x00000000), KErrArgument
1.116 + ),
1.117 + SConvertFrom32BitTest(
1.118 + 0xffb504f3, SRealX(0xffff0001,0xb504f300,0x00000000), KErrArgument
1.119 + ),
1.120 +#endif
1.121 + SConvertFrom32BitTest(
1.122 + 0x7f800000, SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
1.123 + ),
1.124 + SConvertFrom32BitTest(
1.125 + 0xff800000, SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
1.126 + ),
1.127 + SConvertFrom32BitTest(
1.128 + 0x00ffffff, SRealX(0x7f810000,0xffffff00,0x00000000), KErrNone
1.129 + ),
1.130 + SConvertFrom32BitTest(
1.131 + 0x80ffffff, SRealX(0x7f810001,0xffffff00,0x00000000), KErrNone
1.132 + ),
1.133 + SConvertFrom32BitTest(
1.134 + 0x007fffff, SRealX(0x7f800000,0xfffffe00,0x00000000), KErrNone
1.135 + ),
1.136 + SConvertFrom32BitTest(
1.137 + 0x807fffff, SRealX(0x7f800001,0xfffffe00,0x00000000), KErrNone
1.138 + ),
1.139 + SConvertFrom32BitTest(
1.140 + 0x003fffff, SRealX(0x7f7f0000,0xfffffc00,0x00000000), KErrNone
1.141 + ),
1.142 + SConvertFrom32BitTest(
1.143 + 0x803fffff, SRealX(0x7f7f0001,0xfffffc00,0x00000000), KErrNone
1.144 + ),
1.145 + SConvertFrom32BitTest(
1.146 + 0x00000001, SRealX(0x7f6a0000,0x80000000,0x00000000), KErrNone
1.147 + ),
1.148 + SConvertFrom32BitTest(
1.149 + 0x80000001, SRealX(0x7f6a0001,0x80000000,0x00000000), KErrNone
1.150 + )
1.151 + };
1.152 +
1.153 +const SConvertFrom64BitTest ConvertFromInt64Tests[] =
1.154 + {
1.155 + SConvertFrom64BitTest(
1.156 + MAKE_TINT64(0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), KErrNone
1.157 + ),
1.158 + SConvertFrom64BitTest(
1.159 + MAKE_TINT64(0x00000000,0x00000001), SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
1.160 + ),
1.161 + SConvertFrom64BitTest(
1.162 + MAKE_TINT64(0xffffffff,0xffffffff), SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
1.163 + ),
1.164 + SConvertFrom64BitTest(
1.165 + MAKE_TINT64(0x00000000,0x80000000), SRealX(0x801e0000,0x80000000,0x00000000), KErrNone
1.166 + ),
1.167 + SConvertFrom64BitTest(
1.168 + MAKE_TINT64(0x00000001,0x00000000), SRealX(0x801f0000,0x80000000,0x00000000), KErrNone
1.169 + ),
1.170 + SConvertFrom64BitTest(
1.171 + MAKE_TINT64(0x0000000b,0x504f334f), SRealX(0x80220000,0xb504f334,0xf0000000), KErrNone
1.172 + ),
1.173 + SConvertFrom64BitTest(
1.174 + MAKE_TINT64(0xc0000000,0x00000001), SRealX(0x803c0001,0xffffffff,0xfffffffc), KErrNone
1.175 + ),
1.176 + SConvertFrom64BitTest(
1.177 + MAKE_TINT64(0x80000000,0x00000001), SRealX(0x803d0001,0xffffffff,0xfffffffe), KErrNone
1.178 + ),
1.179 + SConvertFrom64BitTest(
1.180 + MAKE_TINT64(0x7fffffff,0xffffffff), SRealX(0x803d0000,0xffffffff,0xfffffffe), KErrNone
1.181 + ),
1.182 + SConvertFrom64BitTest(
1.183 + MAKE_TINT64(0x80000000,0x00000000), SRealX(0x803e0001,0x80000000,0x00000000), KErrNone
1.184 + )
1.185 + };
1.186 +
1.187 +const SConvertFrom64BitTest ConvertFromDoubleTests[] =
1.188 + {
1.189 + SConvertFrom64BitTest(
1.190 + MAKE_TINT64(0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), KErrNone
1.191 + ),
1.192 + SConvertFrom64BitTest(
1.193 + MAKE_TINT64(0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000), KErrNone
1.194 + ),
1.195 + SConvertFrom64BitTest(
1.196 + MAKE_TINT64(0x3ff00000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
1.197 + ),
1.198 + SConvertFrom64BitTest(
1.199 + MAKE_TINT64(0xbff00000,0x00000000), SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
1.200 + ),
1.201 + SConvertFrom64BitTest(
1.202 + MAKE_TINT64(0x3ff6a09e,0x667f3bcd), SRealX(0x7fff0000,0xb504f333,0xf9de6800), KErrNone
1.203 + ),
1.204 + SConvertFrom64BitTest(
1.205 + MAKE_TINT64(0xbff6a09e,0x667f3bcd), SRealX(0x7fff0001,0xb504f333,0xf9de6800), KErrNone
1.206 + ),
1.207 + SConvertFrom64BitTest(
1.208 + MAKE_TINT64(0x40590000,0x00000000), SRealX(0x80050000,0xc8000000,0x00000000), KErrNone
1.209 + ),
1.210 + SConvertFrom64BitTest(
1.211 + MAKE_TINT64(0xc0590000,0x00000000), SRealX(0x80050001,0xc8000000,0x00000000), KErrNone
1.212 + ),
1.213 + SConvertFrom64BitTest(
1.214 + MAKE_TINT64(0x7fe6a09e,0x667f3bcd), SRealX(0x83fe0000,0xb504f333,0xf9de6800), KErrNone
1.215 + ),
1.216 + SConvertFrom64BitTest(
1.217 + MAKE_TINT64(0xffe6a09e,0x667f3bcd), SRealX(0x83fe0001,0xb504f333,0xf9de6800), KErrNone
1.218 + ),
1.219 +#ifndef __VC32__
1.220 + SConvertFrom64BitTest(
1.221 + MAKE_TINT64(0x7ff6a09e,0x667f3bcd), SRealX(0xffff0000,0xb504f333,0xf9de6800), KErrArgument
1.222 + ),
1.223 + SConvertFrom64BitTest(
1.224 + MAKE_TINT64(0xfff6a09e,0x667f3bcd), SRealX(0xffff0001,0xb504f333,0xf9de6800), KErrArgument
1.225 + ),
1.226 + SConvertFrom64BitTest(
1.227 + MAKE_TINT64(0x7ff00000,0x00000001), SRealX(0xffff0000,0x80000000,0x00000800), KErrArgument
1.228 + ),
1.229 + SConvertFrom64BitTest(
1.230 + MAKE_TINT64(0xfff00000,0x00000001), SRealX(0xffff0001,0x80000000,0x00000800), KErrArgument
1.231 + ),
1.232 +#endif
1.233 + SConvertFrom64BitTest(
1.234 + MAKE_TINT64(0x7ff00000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
1.235 + ),
1.236 + SConvertFrom64BitTest(
1.237 + MAKE_TINT64(0xfff00000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
1.238 + ),
1.239 + SConvertFrom64BitTest(
1.240 + MAKE_TINT64(0x001fffff,0xffffffff), SRealX(0x7c010000,0xffffffff,0xfffff800), KErrNone
1.241 + ),
1.242 + SConvertFrom64BitTest(
1.243 + MAKE_TINT64(0x801fffff,0xffffffff), SRealX(0x7c010001,0xffffffff,0xfffff800), KErrNone
1.244 + ),
1.245 + SConvertFrom64BitTest(
1.246 + MAKE_TINT64(0x000fffff,0xffffffff), SRealX(0x7c000000,0xffffffff,0xfffff000), KErrNone
1.247 + ),
1.248 + SConvertFrom64BitTest(
1.249 + MAKE_TINT64(0x800fffff,0xffffffff), SRealX(0x7c000001,0xffffffff,0xfffff000), KErrNone
1.250 + ),
1.251 + SConvertFrom64BitTest(
1.252 + MAKE_TINT64(0x0007ffff,0xffffffff), SRealX(0x7bff0000,0xffffffff,0xffffe000), KErrNone
1.253 + ),
1.254 + SConvertFrom64BitTest(
1.255 + MAKE_TINT64(0x8007ffff,0xffffffff), SRealX(0x7bff0001,0xffffffff,0xffffe000), KErrNone
1.256 + ),
1.257 + SConvertFrom64BitTest(
1.258 + MAKE_TINT64(0x0003ffff,0xffffffff), SRealX(0x7bfe0000,0xffffffff,0xffffc000), KErrNone
1.259 + ),
1.260 + SConvertFrom64BitTest(
1.261 + MAKE_TINT64(0x8003ffff,0xffffffff), SRealX(0x7bfe0001,0xffffffff,0xffffc000), KErrNone
1.262 + ),
1.263 + SConvertFrom64BitTest(
1.264 + MAKE_TINT64(0x00000000,0xffffffff), SRealX(0x7bec0000,0xffffffff,0x00000000), KErrNone
1.265 + ),
1.266 + SConvertFrom64BitTest(
1.267 + MAKE_TINT64(0x80000000,0xffffffff), SRealX(0x7bec0001,0xffffffff,0x00000000), KErrNone
1.268 + ),
1.269 + SConvertFrom64BitTest(
1.270 + MAKE_TINT64(0x00000000,0x7fffffff), SRealX(0x7beb0000,0xfffffffe,0x00000000), KErrNone
1.271 + ),
1.272 + SConvertFrom64BitTest(
1.273 + MAKE_TINT64(0x80000000,0x7fffffff), SRealX(0x7beb0001,0xfffffffe,0x00000000), KErrNone
1.274 + ),
1.275 + SConvertFrom64BitTest(
1.276 + MAKE_TINT64(0x00000000,0x0b504f33), SRealX(0x7be80000,0xb504f330,0x00000000), KErrNone
1.277 + ),
1.278 + SConvertFrom64BitTest(
1.279 + MAKE_TINT64(0x80000000,0x0b504f33), SRealX(0x7be80001,0xb504f330,0x00000000), KErrNone
1.280 + ),
1.281 + SConvertFrom64BitTest(
1.282 + MAKE_TINT64(0x0000b504,0xf333f9de), SRealX(0x7bfc0000,0xb504f333,0xf9de0000), KErrNone
1.283 + ),
1.284 + SConvertFrom64BitTest(
1.285 + MAKE_TINT64(0x8000b504,0xf333f9de), SRealX(0x7bfc0001,0xb504f333,0xf9de0000), KErrNone
1.286 + ),
1.287 + SConvertFrom64BitTest(
1.288 + MAKE_TINT64(0x00000000,0x00000001), SRealX(0x7bcd0000,0x80000000,0x00000000), KErrNone
1.289 + ),
1.290 + SConvertFrom64BitTest(
1.291 + MAKE_TINT64(0x80000000,0x00000001), SRealX(0x7bcd0001,0x80000000,0x00000000), KErrNone
1.292 + )
1.293 + };
1.294 +
1.295 +const SConvertTo32BitTest ConvertToIntTests[] =
1.296 + {
1.297 + SConvertTo32BitTest(
1.298 + SRealX(0xffff0001,0x80000000,0x00000001), 0x00000000, KErrNone
1.299 + ),
1.300 + SConvertTo32BitTest(
1.301 + SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
1.302 + ),
1.303 + SConvertTo32BitTest(
1.304 + SRealX(0x00000001,0x00000000,0x00000000), 0x00000000, KErrNone
1.305 + ),
1.306 + SConvertTo32BitTest(
1.307 + SRealX(0x7ffe0000,0xffffffff,0xffffffff), 0x00000000, KErrNone
1.308 + ),
1.309 + SConvertTo32BitTest(
1.310 + SRealX(0x7ffe0001,0xffffffff,0xffffffff), 0x00000000, KErrNone
1.311 + ),
1.312 + SConvertTo32BitTest(
1.313 + SRealX(0x00010000,0x80000000,0x00000000), 0x00000000, KErrNone
1.314 + ),
1.315 + SConvertTo32BitTest(
1.316 + SRealX(0x00010001,0x80000000,0x00000000), 0x00000000, KErrNone
1.317 + ),
1.318 + SConvertTo32BitTest(
1.319 + SRealX(0x7fff0000,0x80000000,0x00000000), 0x00000001, KErrNone
1.320 + ),
1.321 + SConvertTo32BitTest(
1.322 + SRealX(0x7fff0001,0x80000000,0x00000000), 0xffffffff, KErrNone
1.323 + ),
1.324 + SConvertTo32BitTest(
1.325 + SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x00000001, KErrNone
1.326 + ),
1.327 + SConvertTo32BitTest(
1.328 + SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0xffffffff, KErrNone
1.329 + ),
1.330 + SConvertTo32BitTest(
1.331 + SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x00000003, KErrNone
1.332 + ),
1.333 + SConvertTo32BitTest(
1.334 + SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0xfffffffd, KErrNone
1.335 + ),
1.336 + SConvertTo32BitTest(
1.337 + SRealX(0x80050000,0xc8000000,0x00000000), 0x00000064, KErrNone
1.338 + ),
1.339 + SConvertTo32BitTest(
1.340 + SRealX(0x801d0000,0xfffffffc,0x00000000), 0x7ffffffe, KErrNone
1.341 + ),
1.342 + SConvertTo32BitTest(
1.343 + SRealX(0x801d0001,0xfffffffc,0x00000000), 0x80000002, KErrNone
1.344 + ),
1.345 + SConvertTo32BitTest(
1.346 + SRealX(0x801d0000,0xfffffffe,0x00000000), 0x7fffffff, KErrNone
1.347 + ),
1.348 + SConvertTo32BitTest(
1.349 + SRealX(0x801d0001,0xfffffffe,0x00000000), 0x80000001, KErrNone
1.350 + ),
1.351 + SConvertTo32BitTest(
1.352 + SRealX(0x801e0001,0x80000000,0x00000000), 0x80000000, KErrNone
1.353 + ),
1.354 + SConvertTo32BitTest(
1.355 + SRealX(0x801e0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
1.356 + ),
1.357 + SConvertTo32BitTest(
1.358 + SRealX(0x801f0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
1.359 + ),
1.360 + SConvertTo32BitTest(
1.361 + SRealX(0x803f0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
1.362 + ),
1.363 + SConvertTo32BitTest(
1.364 + SRealX(0xfffe0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
1.365 + ),
1.366 + SConvertTo32BitTest(
1.367 + SRealX(0xffff0000,0x80000000,0x00000000), 0x7fffffff, KErrNone
1.368 + ),
1.369 + SConvertTo32BitTest(
1.370 + SRealX(0x801f0001,0x80000000,0x00000000), 0x80000000, KErrNone
1.371 + ),
1.372 + SConvertTo32BitTest(
1.373 + SRealX(0x803f0001,0x80000000,0x00000000), 0x80000000, KErrNone
1.374 + ),
1.375 + SConvertTo32BitTest(
1.376 + SRealX(0xfffe0001,0x80000000,0x00000000), 0x80000000, KErrNone
1.377 + ),
1.378 + SConvertTo32BitTest(
1.379 + SRealX(0xffff0001,0x80000000,0x00000000), 0x80000000, KErrNone
1.380 + ),
1.381 + SConvertTo32BitTest(
1.382 + SRealX(0xffff0000,0x80000000,0x00000001), 0x00000000, KErrNone
1.383 + ),
1.384 + SConvertTo32BitTest(
1.385 + SRealX(0xffff0000,0xc0000000,0x00000000), 0x00000000, KErrNone
1.386 + ),
1.387 + SConvertTo32BitTest(
1.388 + SRealX(0xffff0001,0xc0000000,0x00000000), 0x00000000, KErrNone
1.389 + )
1.390 + };
1.391 +
1.392 +const SConvertTo32BitTest ConvertToUintTests[] =
1.393 + {
1.394 + SConvertTo32BitTest(
1.395 + SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
1.396 + ),
1.397 + SConvertTo32BitTest(
1.398 + SRealX(0x00000001,0x00000000,0x00000000), 0x00000000, KErrNone
1.399 + ),
1.400 + SConvertTo32BitTest(
1.401 + SRealX(0x7ffe0000,0xffffffff,0xffffffff), 0x00000000, KErrNone
1.402 + ),
1.403 + SConvertTo32BitTest(
1.404 + SRealX(0x7ffe0001,0xffffffff,0xffffffff), 0x00000000, KErrNone
1.405 + ),
1.406 + SConvertTo32BitTest(
1.407 + SRealX(0x00010000,0x80000000,0x00000000), 0x00000000, KErrNone
1.408 + ),
1.409 + SConvertTo32BitTest(
1.410 + SRealX(0x00010001,0x80000000,0x00000000), 0x00000000, KErrNone
1.411 + ),
1.412 + SConvertTo32BitTest(
1.413 + SRealX(0x7fff0000,0x80000000,0x00000000), 0x00000001, KErrNone
1.414 + ),
1.415 + SConvertTo32BitTest(
1.416 + SRealX(0x7fff0001,0x80000000,0x00000000), 0x00000000, KErrNone
1.417 + ),
1.418 + SConvertTo32BitTest(
1.419 + SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x00000001, KErrNone
1.420 + ),
1.421 + SConvertTo32BitTest(
1.422 + SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0x00000000, KErrNone
1.423 + ),
1.424 + SConvertTo32BitTest(
1.425 + SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x00000003, KErrNone
1.426 + ),
1.427 + SConvertTo32BitTest(
1.428 + SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0x00000000, KErrNone
1.429 + ),
1.430 + SConvertTo32BitTest(
1.431 + SRealX(0x80050000,0xc8000000,0x00000000), 0x00000064, KErrNone
1.432 + ),
1.433 + SConvertTo32BitTest(
1.434 + SRealX(0x801d0000,0xfffffffc,0x00000000), 0x7ffffffe, KErrNone
1.435 + ),
1.436 + SConvertTo32BitTest(
1.437 + SRealX(0x801d0001,0xfffffffc,0x00000000), 0x00000000, KErrNone
1.438 + ),
1.439 + SConvertTo32BitTest(
1.440 + SRealX(0x801d0000,0xfffffffe,0x00000000), 0x7fffffff, KErrNone
1.441 + ),
1.442 + SConvertTo32BitTest(
1.443 + SRealX(0x801d0001,0xfffffffe,0x00000000), 0x00000000, KErrNone
1.444 + ),
1.445 + SConvertTo32BitTest(
1.446 + SRealX(0x801e0001,0x80000000,0x00000000), 0x00000000, KErrNone
1.447 + ),
1.448 + SConvertTo32BitTest(
1.449 + SRealX(0x801e0000,0x80000000,0x00000000), 0x80000000, KErrNone
1.450 + ),
1.451 + SConvertTo32BitTest(
1.452 + SRealX(0x801e0000,0xc90fdaa2,0x00000000), 0xc90fdaa2, KErrNone
1.453 + ),
1.454 + SConvertTo32BitTest(
1.455 + SRealX(0x801f0000,0x80000000,0x00000000), 0xffffffff, KErrNone
1.456 + ),
1.457 + SConvertTo32BitTest(
1.458 + SRealX(0x803f0000,0x80000000,0x00000000), 0xffffffff, KErrNone
1.459 + ),
1.460 + SConvertTo32BitTest(
1.461 + SRealX(0xfffe0000,0x80000000,0x00000000), 0xffffffff, KErrNone
1.462 + ),
1.463 + SConvertTo32BitTest(
1.464 + SRealX(0xffff0000,0x80000000,0x00000000), 0xffffffff, KErrNone
1.465 + ),
1.466 + SConvertTo32BitTest(
1.467 + SRealX(0x801f0001,0x80000000,0x00000000), 0x00000000, KErrNone
1.468 + ),
1.469 + SConvertTo32BitTest(
1.470 + SRealX(0x803f0001,0x80000000,0x00000000), 0x00000000, KErrNone
1.471 + ),
1.472 + SConvertTo32BitTest(
1.473 + SRealX(0xfffe0001,0x80000000,0x00000000), 0x00000000, KErrNone
1.474 + ),
1.475 + SConvertTo32BitTest(
1.476 + SRealX(0xffff0001,0x80000000,0x00000000), 0x00000000, KErrNone
1.477 + ),
1.478 + SConvertTo32BitTest(
1.479 + SRealX(0xffff0001,0x80000000,0x00000001), 0x00000000, KErrNone
1.480 + ),
1.481 + SConvertTo32BitTest(
1.482 + SRealX(0xffff0000,0x80000000,0x00000001), 0x00000000, KErrNone
1.483 + ),
1.484 + SConvertTo32BitTest(
1.485 + SRealX(0xffff0000,0xc0000000,0x00000000), 0x00000000, KErrNone
1.486 + ),
1.487 + SConvertTo32BitTest(
1.488 + SRealX(0xffff0001,0xc0000000,0x00000000), 0x00000000, KErrNone
1.489 + )
1.490 + };
1.491 +
1.492 +const SConvertTo64BitTest ConvertToInt64Tests[] =
1.493 + {
1.494 + SConvertTo64BitTest(
1.495 + SRealX(0x801e0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x80000000), KErrNone
1.496 + ),
1.497 + SConvertTo64BitTest(
1.498 + SRealX(0x00000000,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.499 + ),
1.500 + SConvertTo64BitTest(
1.501 + SRealX(0x00000001,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.502 + ),
1.503 + SConvertTo64BitTest(
1.504 + SRealX(0x7ffe0000,0xffffffff,0xffffffff), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.505 + ),
1.506 + SConvertTo64BitTest(
1.507 + SRealX(0x7ffe0001,0xffffffff,0xffffffff), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.508 + ),
1.509 + SConvertTo64BitTest(
1.510 + SRealX(0x7fff0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
1.511 + ),
1.512 + SConvertTo64BitTest(
1.513 + SRealX(0x7fff0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0xffffffff), KErrNone
1.514 + ),
1.515 + SConvertTo64BitTest(
1.516 + SRealX(0x7fff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000001), KErrNone
1.517 + ),
1.518 + SConvertTo64BitTest(
1.519 + SRealX(0x7fff0001,0xb504f333,0xf9de6484), MAKE_TINT64(0xffffffff,0xffffffff), KErrNone
1.520 + ),
1.521 + SConvertTo64BitTest(
1.522 + SRealX(0x80000000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x00000000,0x00000003), KErrNone
1.523 + ),
1.524 + SConvertTo64BitTest(
1.525 + SRealX(0x80000001,0xc90fdaa2,0x2168c235), MAKE_TINT64(0xffffffff,0xfffffffd), KErrNone
1.526 + ),
1.527 + SConvertTo64BitTest(
1.528 + SRealX(0x80050000,0xc8000000,0x00000000), MAKE_TINT64(0x00000000,0x00000064), KErrNone
1.529 + ),
1.530 + SConvertTo64BitTest(
1.531 + SRealX(0x80050001,0xc8000000,0x00000000), MAKE_TINT64(0xffffffff,0xffffff9c), KErrNone
1.532 + ),
1.533 + SConvertTo64BitTest(
1.534 + SRealX(0x801d0000,0xfffffffc,0x00000000), MAKE_TINT64(0x00000000,0x7ffffffe), KErrNone
1.535 + ),
1.536 + SConvertTo64BitTest(
1.537 + SRealX(0x801d0001,0xfffffffc,0x00000000), MAKE_TINT64(0xffffffff,0x80000002), KErrNone
1.538 + ),
1.539 + SConvertTo64BitTest(
1.540 + SRealX(0x801d0000,0xfffffffe,0x00000000), MAKE_TINT64(0x00000000,0x7fffffff), KErrNone
1.541 + ),
1.542 + SConvertTo64BitTest(
1.543 + SRealX(0x801d0001,0xfffffffe,0x00000000), MAKE_TINT64(0xffffffff,0x80000001), KErrNone
1.544 + ),
1.545 + SConvertTo64BitTest(
1.546 + SRealX(0x801e0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0x80000000), KErrNone
1.547 + ),
1.548 + SConvertTo64BitTest(
1.549 + SRealX(0x801f0000,0x80000000,0x00000000), MAKE_TINT64(0x00000001,0x00000000), KErrNone
1.550 + ),
1.551 + SConvertTo64BitTest(
1.552 + SRealX(0x801f0001,0x80000000,0x00000000), MAKE_TINT64(0xffffffff,0x00000000), KErrNone
1.553 + ),
1.554 + SConvertTo64BitTest(
1.555 + SRealX(0x801f0000,0xcccccccc,0xcccccccd), MAKE_TINT64(0x00000001,0x99999999), KErrNone
1.556 + ),
1.557 + SConvertTo64BitTest(
1.558 + SRealX(0x801f0001,0xcccccccc,0xcccccccd), MAKE_TINT64(0xfffffffe,0x66666667), KErrNone
1.559 + ),
1.560 + SConvertTo64BitTest(
1.561 + SRealX(0x80220000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000000b,0x504f333f), KErrNone
1.562 + ),
1.563 + SConvertTo64BitTest(
1.564 + SRealX(0x80260000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000000b5,0x04f333f9), KErrNone
1.565 + ),
1.566 + SConvertTo64BitTest(
1.567 + SRealX(0x803d0000,0xffffffff,0xfffffffc), MAKE_TINT64(0x7fffffff,0xfffffffe), KErrNone
1.568 + ),
1.569 + SConvertTo64BitTest(
1.570 + SRealX(0x803d0001,0xffffffff,0xfffffffc), MAKE_TINT64(0x80000000,0x00000002), KErrNone
1.571 + ),
1.572 + SConvertTo64BitTest(
1.573 + SRealX(0x803d0000,0xffffffff,0xfffffffe), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
1.574 + ),
1.575 + SConvertTo64BitTest(
1.576 + SRealX(0x803d0001,0xffffffff,0xfffffffe), MAKE_TINT64(0x80000000,0x00000001), KErrNone
1.577 + ),
1.578 + SConvertTo64BitTest(
1.579 + SRealX(0x803e0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
1.580 + ),
1.581 + SConvertTo64BitTest(
1.582 + SRealX(0x803e0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
1.583 + ),
1.584 + SConvertTo64BitTest(
1.585 + SRealX(0x803f0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
1.586 + ),
1.587 + SConvertTo64BitTest(
1.588 + SRealX(0x803f0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
1.589 + ),
1.590 + SConvertTo64BitTest(
1.591 + SRealX(0xfffe0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
1.592 + ),
1.593 + SConvertTo64BitTest(
1.594 + SRealX(0xfffe0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
1.595 + ),
1.596 + SConvertTo64BitTest(
1.597 + SRealX(0xffff0000,0x80000000,0x00000000), MAKE_TINT64(0x7fffffff,0xffffffff), KErrNone
1.598 + ),
1.599 + SConvertTo64BitTest(
1.600 + SRealX(0xffff0001,0x80000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
1.601 + ),
1.602 + SConvertTo64BitTest(
1.603 + SRealX(0xffff0000,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.604 + ),
1.605 + SConvertTo64BitTest(
1.606 + SRealX(0xffff0001,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.607 + ),
1.608 + SConvertTo64BitTest(
1.609 + SRealX(0xffff0000,0xc0000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.610 + ),
1.611 + SConvertTo64BitTest(
1.612 + SRealX(0xffff0001,0xc0000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.613 + )
1.614 + };
1.615 +
1.616 +const SConvertTo32BitTest ConvertToFloatTests[] =
1.617 + {
1.618 + SConvertTo32BitTest(
1.619 + SRealX(0x00000000,0x00000000,0x00000000), 0x00000000, KErrNone
1.620 + ),
1.621 + SConvertTo32BitTest(
1.622 + SRealX(0x00000001,0x00000000,0x00000000), 0x80000000, KErrNone
1.623 + ),
1.624 + SConvertTo32BitTest(
1.625 + SRealX(0x7fff0000,0x80000000,0x00000000), 0x3f800000, KErrNone
1.626 + ),
1.627 + SConvertTo32BitTest(
1.628 + SRealX(0x7fff0001,0x80000000,0x00000000), 0xbf800000, KErrNone
1.629 + ),
1.630 + SConvertTo32BitTest(
1.631 + SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0x3fb504f3, KErrNone
1.632 + ),
1.633 + SConvertTo32BitTest(
1.634 + SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0xbfb504f3, KErrNone
1.635 + ),
1.636 + SConvertTo32BitTest(
1.637 + SRealX(0x80000000,0xc90fdaa2,0x2168c235), 0x40490fdb, KErrNone
1.638 + ),
1.639 + SConvertTo32BitTest(
1.640 + SRealX(0x80000001,0xc90fdaa2,0x2168c235), 0xc0490fdb, KErrNone
1.641 + ),
1.642 + SConvertTo32BitTest(
1.643 + SRealX(0x7fff0000,0xffffff00,0x00000000), 0x3fffffff, KErrNone
1.644 + ),
1.645 + SConvertTo32BitTest(
1.646 + SRealX(0x7fff0000,0xffffff80,0x00000000), 0x40000000, KErrNone
1.647 + ),
1.648 + SConvertTo32BitTest(
1.649 + SRealX(0x7fff0000,0xfffffe80,0x00000000), 0x3ffffffe, KErrNone
1.650 + ),
1.651 + SConvertTo32BitTest(
1.652 + SRealX(0x7fff0000,0xfffffe80,0x00000001), 0x3fffffff, KErrNone
1.653 + ),
1.654 + SConvertTo32BitTest(
1.655 + SRealX(0x7fff0100,0xffffff80,0x00000000), 0x40000000, KErrNone
1.656 + ),
1.657 + SConvertTo32BitTest(
1.658 + SRealX(0x7fff0200,0xffffff80,0x00000000), 0x3fffffff, KErrNone
1.659 + ),
1.660 + SConvertTo32BitTest(
1.661 + SRealX(0x7fff0100,0xfffffe80,0x00000000), 0x3fffffff, KErrNone
1.662 + ),
1.663 + SConvertTo32BitTest(
1.664 + SRealX(0x7fff0200,0xfffffe80,0x00000000), 0x3ffffffe, KErrNone
1.665 + ),
1.666 + SConvertTo32BitTest(
1.667 + SRealX(0x807e0000,0x80000000,0x00000000), 0x7f000000, KErrNone
1.668 + ),
1.669 + SConvertTo32BitTest(
1.670 + SRealX(0x807f0000,0x80000000,0x00000000), 0x7f800000, KErrOverflow
1.671 + ),
1.672 + SConvertTo32BitTest(
1.673 + SRealX(0x807f0001,0x80000000,0x00000000), 0xff800000, KErrOverflow
1.674 + ),
1.675 + SConvertTo32BitTest(
1.676 + SRealX(0x807e0000,0xffffff80,0x00000000), 0x7f800000, KErrOverflow
1.677 + ),
1.678 + SConvertTo32BitTest(
1.679 + SRealX(0x807e0100,0xffffff80,0x00000000), 0x7f800000, KErrOverflow
1.680 + ),
1.681 + SConvertTo32BitTest(
1.682 + SRealX(0x807e0200,0xffffff80,0x00000000), 0x7f7fffff, KErrNone
1.683 + ),
1.684 + SConvertTo32BitTest(
1.685 + SRealX(0x807f0000,0xb504f333,0xf9de6484), 0x7f800000, KErrOverflow
1.686 + ),
1.687 + SConvertTo32BitTest(
1.688 + SRealX(0xffff0000,0x80000000,0x00000000), 0x7f800000, KErrOverflow
1.689 + ),
1.690 + SConvertTo32BitTest(
1.691 + SRealX(0xffff0001,0x80000000,0x00000000), 0xff800000, KErrOverflow
1.692 + ),
1.693 + SConvertTo32BitTest(
1.694 + SRealX(0xffff0000,0xc504f333,0xf9de6484), 0x7fc504f3, KErrArgument
1.695 + ),
1.696 + SConvertTo32BitTest(
1.697 + SRealX(0xffff0000,0xc90fdaa2,0x2168c235), 0x7fc90fda, KErrArgument
1.698 + ),
1.699 + SConvertTo32BitTest(
1.700 + SRealX(0xffff0001,0xc504f333,0xf9de6484), 0xffc504f3, KErrArgument
1.701 + ),
1.702 + SConvertTo32BitTest(
1.703 + SRealX(0x7f810000,0xb504f333,0xf9de6484), 0x00b504f3, KErrNone
1.704 + ),
1.705 + SConvertTo32BitTest(
1.706 + SRealX(0x7f810000,0xb504f333,0xf9de6484), 0x00b504f3, KErrNone
1.707 + ),
1.708 + SConvertTo32BitTest(
1.709 + SRealX(0x7f800000,0xb504f333,0xf9de6484), 0x005a827a, KErrNone
1.710 + ),
1.711 + SConvertTo32BitTest(
1.712 + SRealX(0x7f800000,0xffffffff,0xffffffff), 0x00800000, KErrNone
1.713 + ),
1.714 + SConvertTo32BitTest(
1.715 + SRealX(0x7f7f0000,0xb504f333,0xf9de6484), 0x002d413d, KErrNone
1.716 + ),
1.717 + SConvertTo32BitTest(
1.718 + SRealX(0x7f7d0000,0xb504f333,0xf9de6484), 0x000b504f, KErrNone
1.719 + ),
1.720 + SConvertTo32BitTest(
1.721 + SRealX(0x7f790000,0xb504f333,0xf9de6484), 0x0000b505, KErrNone
1.722 + ),
1.723 + SConvertTo32BitTest(
1.724 + SRealX(0x7f750000,0xb504f333,0xf9de6484), 0x00000b50, KErrNone
1.725 + ),
1.726 + SConvertTo32BitTest(
1.727 + SRealX(0x7f710000,0xb504f333,0xf9de6484), 0x000000b5, KErrNone
1.728 + ),
1.729 + SConvertTo32BitTest(
1.730 + SRealX(0x7f6d0000,0xb504f333,0xf9de6484), 0x0000000b, KErrNone
1.731 + ),
1.732 + SConvertTo32BitTest(
1.733 + SRealX(0x7f6a0000,0xc504f333,0xf9de6484), 0x00000002, KErrNone
1.734 + ),
1.735 + SConvertTo32BitTest(
1.736 + SRealX(0x7f690000,0xc504f333,0xf9de6484), 0x00000001, KErrNone
1.737 + ),
1.738 + SConvertTo32BitTest(
1.739 + SRealX(0x7f680000,0xc504f333,0xf9de6484), 0x00000000, KErrUnderflow
1.740 + ),
1.741 + SConvertTo32BitTest(
1.742 + SRealX(0x7f680001,0xc504f333,0xf9de6484), 0x80000000, KErrUnderflow
1.743 + ),
1.744 + SConvertTo32BitTest(
1.745 + SRealX(0x7f6a0000,0x80000000,0x00000000), 0x00000001, KErrNone
1.746 + ),
1.747 + SConvertTo32BitTest(
1.748 + SRealX(0x7f690000,0x80000000,0x00000000), 0x00000000, KErrUnderflow
1.749 + ),
1.750 + SConvertTo32BitTest(
1.751 + SRealX(0x7f690000,0x80000000,0x00000001), 0x00000001, KErrNone
1.752 + ),
1.753 + SConvertTo32BitTest(
1.754 + SRealX(0x7f690100,0x80000000,0x00000000), 0x00000001, KErrNone
1.755 + ),
1.756 + SConvertTo32BitTest(
1.757 + SRealX(0x7f690200,0x80000000,0x00000000), 0x00000000, KErrUnderflow
1.758 + )
1.759 + };
1.760 +
1.761 +const SConvertTo64BitTest ConvertToDoubleTests[] =
1.762 + {
1.763 + SConvertTo64BitTest(
1.764 + SRealX(0x00000000,0x00000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrNone
1.765 + ),
1.766 + SConvertTo64BitTest(
1.767 + SRealX(0x00000001,0x00000000,0x00000000), MAKE_TINT64(0x80000000,0x00000000), KErrNone
1.768 + ),
1.769 + SConvertTo64BitTest(
1.770 + SRealX(0x7fff0000,0x80000000,0x00000000), MAKE_TINT64(0x3ff00000,0x00000000), KErrNone
1.771 + ),
1.772 + SConvertTo64BitTest(
1.773 + SRealX(0x7fff0001,0x80000000,0x00000000), MAKE_TINT64(0xbff00000,0x00000000), KErrNone
1.774 + ),
1.775 + SConvertTo64BitTest(
1.776 + SRealX(0x7fff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x3ff6a09e,0x667f3bcd), KErrNone
1.777 + ),
1.778 + SConvertTo64BitTest(
1.779 + SRealX(0x7fff0001,0xb504f333,0xf9de6484), MAKE_TINT64(0xbff6a09e,0x667f3bcd), KErrNone
1.780 + ),
1.781 + SConvertTo64BitTest(
1.782 + SRealX(0x80000000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x400921fb,0x54442d18), KErrNone
1.783 + ),
1.784 + SConvertTo64BitTest(
1.785 + SRealX(0x80000001,0xc90fdaa2,0x2168c235), MAKE_TINT64(0xc00921fb,0x54442d18), KErrNone
1.786 + ),
1.787 + SConvertTo64BitTest(
1.788 + SRealX(0x7fff0000,0xffffffff,0xfffff800), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
1.789 + ),
1.790 + SConvertTo64BitTest(
1.791 + SRealX(0x7fff0000,0xffffffff,0xfffffc00), MAKE_TINT64(0x40000000,0x00000000), KErrNone
1.792 + ),
1.793 + SConvertTo64BitTest(
1.794 + SRealX(0x7fff0000,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xfffffffe), KErrNone
1.795 + ),
1.796 + SConvertTo64BitTest(
1.797 + SRealX(0x7fff0000,0xffffffff,0xfffff401), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
1.798 + ),
1.799 + SConvertTo64BitTest(
1.800 + SRealX(0x7fff0100,0xffffffff,0xfffffc00), MAKE_TINT64(0x40000000,0x00000000), KErrNone
1.801 + ),
1.802 + SConvertTo64BitTest(
1.803 + SRealX(0x7fff0200,0xffffffff,0xfffffc00), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
1.804 + ),
1.805 + SConvertTo64BitTest(
1.806 + SRealX(0x7fff0100,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xffffffff), KErrNone
1.807 + ),
1.808 + SConvertTo64BitTest(
1.809 + SRealX(0x7fff0200,0xffffffff,0xfffff400), MAKE_TINT64(0x3fffffff,0xfffffffe), KErrNone
1.810 + ),
1.811 + SConvertTo64BitTest(
1.812 + SRealX(0x83fe0000,0x80000000,0x00000000), MAKE_TINT64(0x7fe00000,0x00000000), KErrNone
1.813 + ),
1.814 + SConvertTo64BitTest(
1.815 + SRealX(0x83ff0000,0x80000000,0x00000000), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
1.816 + ),
1.817 + SConvertTo64BitTest(
1.818 + SRealX(0x83ff0001,0x80000000,0x00000000), MAKE_TINT64(0xfff00000,0x00000000), KErrOverflow
1.819 + ),
1.820 + SConvertTo64BitTest(
1.821 + SRealX(0x83fe0000,0xffffffff,0xfffffc00), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
1.822 + ),
1.823 + SConvertTo64BitTest(
1.824 + SRealX(0x83fe0100,0xffffffff,0xfffffc00), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
1.825 + ),
1.826 + SConvertTo64BitTest(
1.827 + SRealX(0x83fe0200,0xffffffff,0xfffffc00), MAKE_TINT64(0x7fefffff,0xffffffff), KErrNone
1.828 + ),
1.829 + SConvertTo64BitTest(
1.830 + SRealX(0x83ff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
1.831 + ),
1.832 + SConvertTo64BitTest(
1.833 + SRealX(0xffff0000,0x80000000,0x00000000), MAKE_TINT64(0x7ff00000,0x00000000), KErrOverflow
1.834 + ),
1.835 + SConvertTo64BitTest(
1.836 + SRealX(0xffff0001,0x80000000,0x00000000), MAKE_TINT64(0xfff00000,0x00000000), KErrOverflow
1.837 + ),
1.838 + SConvertTo64BitTest(
1.839 + SRealX(0xffff0000,0xf504f333,0xf9de6484), MAKE_TINT64(0x7ffea09e,0x667f3bcc), KErrArgument
1.840 + ),
1.841 + SConvertTo64BitTest(
1.842 + SRealX(0xffff0001,0xf504f333,0xf9de6484), MAKE_TINT64(0xfffea09e,0x667f3bcc), KErrArgument
1.843 + ),
1.844 + SConvertTo64BitTest(
1.845 + SRealX(0xffff0000,0xc90fdaa2,0x2168c235), MAKE_TINT64(0x7ff921fb,0x54442d18), KErrArgument
1.846 + ),
1.847 + SConvertTo64BitTest(
1.848 + SRealX(0x7c010000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0016a09e,0x667f3bcd), KErrNone
1.849 + ),
1.850 + SConvertTo64BitTest(
1.851 + SRealX(0x7c000000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000b504f,0x333f9de6), KErrNone
1.852 + ),
1.853 + SConvertTo64BitTest(
1.854 + SRealX(0x7c000000,0xffffffff,0xffffffff), MAKE_TINT64(0x00100000,0x00000000), KErrNone
1.855 + ),
1.856 + SConvertTo64BitTest(
1.857 + SRealX(0x7bff0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0005a827,0x999fcef3), KErrNone
1.858 + ),
1.859 + SConvertTo64BitTest(
1.860 + SRealX(0x7bfc0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000b504,0xf333f9de), KErrNone
1.861 + ),
1.862 + SConvertTo64BitTest(
1.863 + SRealX(0x7bf80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000b50,0x4f333f9e), KErrNone
1.864 + ),
1.865 + SConvertTo64BitTest(
1.866 + SRealX(0x7bf40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x000000b5,0x04f333fa), KErrNone
1.867 + ),
1.868 + SConvertTo64BitTest(
1.869 + SRealX(0x7bf00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x0000000b,0x504f3340), KErrNone
1.870 + ),
1.871 + SConvertTo64BitTest(
1.872 + SRealX(0x7bec0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0xb504f334), KErrNone
1.873 + ),
1.874 + SConvertTo64BitTest(
1.875 + SRealX(0x7be80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0b504f33), KErrNone
1.876 + ),
1.877 + SConvertTo64BitTest(
1.878 + SRealX(0x7be40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00b504f3), KErrNone
1.879 + ),
1.880 + SConvertTo64BitTest(
1.881 + SRealX(0x7be00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x000b504f), KErrNone
1.882 + ),
1.883 + SConvertTo64BitTest(
1.884 + SRealX(0x7bdc0000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0000b505), KErrNone
1.885 + ),
1.886 + SConvertTo64BitTest(
1.887 + SRealX(0x7bd80000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000b50), KErrNone
1.888 + ),
1.889 + SConvertTo64BitTest(
1.890 + SRealX(0x7bd40000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x000000b5), KErrNone
1.891 + ),
1.892 + SConvertTo64BitTest(
1.893 + SRealX(0x7bd00000,0xb504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x0000000b), KErrNone
1.894 + ),
1.895 + SConvertTo64BitTest(
1.896 + SRealX(0x7bcd0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000002), KErrNone
1.897 + ),
1.898 + SConvertTo64BitTest(
1.899 + SRealX(0x7bcc0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000001), KErrNone
1.900 + ),
1.901 + SConvertTo64BitTest(
1.902 + SRealX(0x7bcb0000,0xc504f333,0xf9de6484), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
1.903 + ),
1.904 + SConvertTo64BitTest(
1.905 + SRealX(0x7bcb0001,0xc504f333,0xf9de6484), MAKE_TINT64(0x80000000,0x00000000), KErrUnderflow
1.906 + ),
1.907 + SConvertTo64BitTest(
1.908 + SRealX(0x7bcd0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
1.909 + ),
1.910 + SConvertTo64BitTest(
1.911 + SRealX(0x7bcc0000,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
1.912 + ),
1.913 + SConvertTo64BitTest(
1.914 + SRealX(0x7bcc0000,0x80000000,0x00000001), MAKE_TINT64(0x00000000,0x00000001), KErrNone
1.915 + ),
1.916 + SConvertTo64BitTest(
1.917 + SRealX(0x7bcc0100,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000001), KErrNone
1.918 + ),
1.919 + SConvertTo64BitTest(
1.920 + SRealX(0x7bcc0200,0x80000000,0x00000000), MAKE_TINT64(0x00000000,0x00000000), KErrUnderflow
1.921 + )
1.922 + };
1.923 +
1.924 +const SSpecialValueTest SpecialValueTests[] =
1.925 + {
1.926 + SSpecialValueTest(
1.927 + SRealX(0x00000000,0x00000000,0x00000000), 9 /* 1001 */ ),
1.928 + SSpecialValueTest(
1.929 + SRealX(0x00000001,0x00000000,0x00000000), 9 /* 1001 */ ),
1.930 + SSpecialValueTest(
1.931 + SRealX(0x00010000,0x80000000,0x00000000), 1 /* 0001 */ ),
1.932 + SSpecialValueTest(
1.933 + SRealX(0x7fff0000,0x80000000,0x00000000), 1 /* 0001 */ ),
1.934 + SSpecialValueTest(
1.935 + SRealX(0xfffe0000,0x80000000,0x00000000), 1 /* 0001 */ ),
1.936 + SSpecialValueTest(
1.937 + SRealX(0xfffe0001,0x80000000,0x00000000), 1 /* 0001 */ ),
1.938 + SSpecialValueTest(
1.939 + SRealX(0xffff0000,0x80000000,0x00000000), 2 /* 0010 */ ),
1.940 + SSpecialValueTest(
1.941 + SRealX(0xffff0001,0x80000000,0x00000000), 2 /* 0010 */ ),
1.942 + SSpecialValueTest(
1.943 + SRealX(0xffff0000,0x80000000,0x00000001), 4 /* 0100 */ ),
1.944 + SSpecialValueTest(
1.945 + SRealX(0xffff0001,0x80000000,0x00000001), 4 /* 0100 */ ),
1.946 + SSpecialValueTest(
1.947 + SRealX(0xffff0000,0xc0000000,0x00000000), 4 /* 0100 */ ),
1.948 + SSpecialValueTest(
1.949 + SRealX(0xffff0001,0xc0000000,0x00000000), 4 /* 0100 */ )
1.950 + };
1.951 +
1.952 +GLDEF_D const TInt NumConvertFromIntTests=sizeof(ConvertFromIntTests)/sizeof(SConvertFrom32BitTest);
1.953 +GLDEF_D const TInt NumConvertFromUintTests=sizeof(ConvertFromUintTests)/sizeof(SConvertFrom32BitTest);
1.954 +GLDEF_D const TInt NumConvertFromFloatTests=sizeof(ConvertFromFloatTests)/sizeof(SConvertFrom32BitTest);
1.955 +GLDEF_D const TInt NumConvertFromInt64Tests=sizeof(ConvertFromInt64Tests)/sizeof(SConvertFrom64BitTest);
1.956 +GLDEF_D const TInt NumConvertFromDoubleTests=sizeof(ConvertFromDoubleTests)/sizeof(SConvertFrom64BitTest);
1.957 +GLDEF_D const TInt NumConvertToIntTests=sizeof(ConvertToIntTests)/sizeof(SConvertTo32BitTest);
1.958 +GLDEF_D const TInt NumConvertToUintTests=sizeof(ConvertToUintTests)/sizeof(SConvertTo32BitTest);
1.959 +GLDEF_D const TInt NumConvertToInt64Tests=sizeof(ConvertToInt64Tests)/sizeof(SConvertTo64BitTest);
1.960 +GLDEF_D const TInt NumConvertToFloatTests=sizeof(ConvertToFloatTests)/sizeof(SConvertTo32BitTest);
1.961 +GLDEF_D const TInt NumConvertToDoubleTests=sizeof(ConvertToDoubleTests)/sizeof(SConvertTo64BitTest);
1.962 +GLDEF_D const TInt NumSpecialValueTests=sizeof(SpecialValueTests)/sizeof(SSpecialValueTest);