equal
deleted
inserted
replaced
|
1 // Copyright (c) 1996-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\t_real.h |
|
15 // E32TMATH.H - Test header file for TReal32, TReal64 |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 #include <e32std.h> |
|
21 |
|
22 struct SReal32 |
|
23 { |
|
24 unsigned man:23; |
|
25 unsigned exp:8; |
|
26 unsigned sign:1; |
|
27 }; |
|
28 |
|
29 #if defined(__DOUBLE_WORDS_SWAPPED__) |
|
30 struct SReal64 |
|
31 { |
|
32 unsigned msm:20; |
|
33 unsigned exp:11; |
|
34 unsigned sign:1; |
|
35 TUint lsm; |
|
36 }; |
|
37 #define DVAL(m0,m1,m2,m3,e) {(TUint)((m0<<16)|m1),e+KExponentBias,0,(TUint)((m2<<16)|m3)} |
|
38 #else |
|
39 struct SReal64 |
|
40 { |
|
41 TUint lsm; |
|
42 unsigned msm:20; |
|
43 unsigned exp:11; |
|
44 unsigned sign:1; |
|
45 }; |
|
46 #define DVAL(m0,m1,m2,m3,e) {(TUint)((m2<<16)|m3),(TUint)((m0<<16)|m1),e+KExponentBias,0} |
|
47 #endif |
|
48 |