sl@0
|
1 |
// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// f32test\math\t_vals.h
|
sl@0
|
15 |
// SPECVALS.H - special values for TReal32 and TReal64 tests
|
sl@0
|
16 |
// Generated by \E32\TMATH\T_GEN.MAK
|
sl@0
|
17 |
//
|
sl@0
|
18 |
//
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
#include <e32std.h>
|
sl@0
|
22 |
|
sl@0
|
23 |
class TInt32x
|
sl@0
|
24 |
{
|
sl@0
|
25 |
public:
|
sl@0
|
26 |
TInt32x(TInt32 aInt) {iInt=aInt;}
|
sl@0
|
27 |
public:
|
sl@0
|
28 |
TInt32 iInt;
|
sl@0
|
29 |
};
|
sl@0
|
30 |
|
sl@0
|
31 |
#if defined (__DOUBLE_WORDS_SWAPPED__)
|
sl@0
|
32 |
|
sl@0
|
33 |
// for ARM (big-endian doubles)
|
sl@0
|
34 |
|
sl@0
|
35 |
const TInt64 minTReal32in64 = MAKE_TINT64(0x0,0x38100000);
|
sl@0
|
36 |
const TInt64 maxTReal32in64 = MAKE_TINT64(0xe0000000,0x47efffff);
|
sl@0
|
37 |
const TInt64 sqrtMaxTReal64 = MAKE_TINT64(0xffd9c605,0x5fefffff);
|
sl@0
|
38 |
const TInt64 sqrtMinTReal64 = MAKE_TINT64(0x0,0x20000000);
|
sl@0
|
39 |
const TInt64 negZeroTReal64 = MAKE_TINT64(0x0,0x80000000);
|
sl@0
|
40 |
const TInt64 posInfTReal64 = MAKE_TINT64(0x0,0x7ff00000);
|
sl@0
|
41 |
const TInt64 negInfTReal64 = MAKE_TINT64(0x0,0xfff00000);
|
sl@0
|
42 |
const TInt64 NaNTReal64 = MAKE_TINT64(0xffffffff,0x7fffffff);
|
sl@0
|
43 |
const TInt32x sqrtMaxTReal32 = TInt32x(0x5f7ffffd);
|
sl@0
|
44 |
const TInt32x sqrtMinTReal32 = TInt32x(0x20000000);
|
sl@0
|
45 |
const TInt32x negZeroTReal32 = TInt32x(0x80000000);
|
sl@0
|
46 |
const TReal64 KMinTReal32in64 = *(TReal64*)&minTReal32in64;
|
sl@0
|
47 |
const TReal64 KMaxTReal32in64 = *(TReal64*)&maxTReal32in64;
|
sl@0
|
48 |
const TReal64 KSqrtMaxTReal64 = *(TReal64*)&sqrtMaxTReal64;
|
sl@0
|
49 |
const TReal64 KSqrtMinTReal64 = *(TReal64*)&sqrtMinTReal64;
|
sl@0
|
50 |
const TReal64 KNegZeroTReal64 = *(TReal64*)&negZeroTReal64;
|
sl@0
|
51 |
const TReal64 KPosInfTReal64 = *(TReal64*)&posInfTReal64;
|
sl@0
|
52 |
const TReal64 KNegInfTReal64 = *(TReal64*)&negInfTReal64;
|
sl@0
|
53 |
const TReal64 KNaNTReal64 = *(TReal64*)&NaNTReal64;
|
sl@0
|
54 |
const TReal32 KSqrtMaxTReal32 = *(TReal32*)&sqrtMaxTReal32;
|
sl@0
|
55 |
const TReal32 KSqrtMinTReal32 = *(TReal32*)&sqrtMinTReal32;
|
sl@0
|
56 |
const TReal32 KNegZeroTReal32 = *(TReal32*)&negZeroTReal32;
|
sl@0
|
57 |
const TReal KMinTReal32inTReal = TReal(KMinTReal32in64);
|
sl@0
|
58 |
const TReal KMaxTReal32inTReal = TReal(KMaxTReal32in64);
|
sl@0
|
59 |
const TReal KNegZeroTReal = TReal(KNegZeroTReal64);
|
sl@0
|
60 |
|
sl@0
|
61 |
#else // NOT #if defined (__DOUBLE_WORDS_SWAPPED__)
|
sl@0
|
62 |
|
sl@0
|
63 |
// for WINS and X86 (little-endian doubles)
|
sl@0
|
64 |
|
sl@0
|
65 |
const TInt64 minTReal32in64 = MAKE_TINT64(0x38100000,0x0);
|
sl@0
|
66 |
const TInt64 maxTReal32in64 = MAKE_TINT64(0x47efffff,0xe0000000);
|
sl@0
|
67 |
const TInt64 sqrtMaxTReal64 = MAKE_TINT64(0x5fefffff,0xffd9c605);
|
sl@0
|
68 |
const TInt64 sqrtMinTReal64 = MAKE_TINT64(0x20000000,0x0);
|
sl@0
|
69 |
const TInt64 negZeroTReal64 = MAKE_TINT64(0x80000000,0x0);
|
sl@0
|
70 |
const TInt64 posInfTReal64 = MAKE_TINT64(0x7ff00000,0x0);
|
sl@0
|
71 |
const TInt64 negInfTReal64 = MAKE_TINT64(0xfff00000,0x0);
|
sl@0
|
72 |
const TInt64 NaNTReal64 = MAKE_TINT64(0x7fffffff,0xffffffff);
|
sl@0
|
73 |
const TInt32x sqrtMaxTReal32 = TInt32x(0x5f7ffffd);
|
sl@0
|
74 |
const TInt32x sqrtMinTReal32 = TInt32x(0x20000000);
|
sl@0
|
75 |
const TInt32x negZeroTReal32 = TInt32x(0x80000000);
|
sl@0
|
76 |
const TReal64 KMinTReal32in64 = *(TReal64*)&minTReal32in64;
|
sl@0
|
77 |
const TReal64 KMaxTReal32in64 = *(TReal64*)&maxTReal32in64;
|
sl@0
|
78 |
const TReal64 KSqrtMaxTReal64 = *(TReal64*)&sqrtMaxTReal64;
|
sl@0
|
79 |
const TReal64 KSqrtMinTReal64 = *(TReal64*)&sqrtMinTReal64;
|
sl@0
|
80 |
const TReal64 KNegZeroTReal64 = *(TReal64*)&negZeroTReal64;
|
sl@0
|
81 |
const TReal64 KPosInfTReal64 = *(TReal64*)&posInfTReal64;
|
sl@0
|
82 |
const TReal64 KNegInfTReal64 = *(TReal64*)&negInfTReal64;
|
sl@0
|
83 |
const TReal64 KNaNTReal64 = *(TReal64*)&NaNTReal64;
|
sl@0
|
84 |
const TReal32 KSqrtMaxTReal32 = *(TReal32*)&sqrtMaxTReal32;
|
sl@0
|
85 |
const TReal32 KSqrtMinTReal32 = *(TReal32*)&sqrtMinTReal32;
|
sl@0
|
86 |
const TReal32 KNegZeroTReal32 = *(TReal32*)&negZeroTReal32;
|
sl@0
|
87 |
const TReal KMinTReal32inTReal = TReal(KMinTReal32in64);
|
sl@0
|
88 |
const TReal KMaxTReal32inTReal = TReal(KMaxTReal32in64);
|
sl@0
|
89 |
const TReal KNegZeroTReal = TReal(KNegZeroTReal64);
|
sl@0
|
90 |
|
sl@0
|
91 |
#endif
|