sl@0
|
1 |
// Copyright (c) 1997-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 |
// e32test\math\trealxd1.cpp
|
sl@0
|
15 |
// TREALXD1.CPP - Test data for TRealX
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
#include "t_realxd.h"
|
sl@0
|
21 |
|
sl@0
|
22 |
const STwoOpTest BinaryOpNaNTests[] =
|
sl@0
|
23 |
{
|
sl@0
|
24 |
STwoOpTest(
|
sl@0
|
25 |
SRealX(0xffff0000,0xc0000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
26 |
SRealX(0xffff0000,0xc0000000,0x00000000), KErrArgument
|
sl@0
|
27 |
),
|
sl@0
|
28 |
STwoOpTest(
|
sl@0
|
29 |
SRealX(0xffff0000,0xc0000000,0x00000000), SRealX(0x7fff0000,0xb504f333,0xf9de6484),
|
sl@0
|
30 |
SRealX(0xffff0000,0xc0000000,0x00000000), KErrArgument
|
sl@0
|
31 |
),
|
sl@0
|
32 |
STwoOpTest(
|
sl@0
|
33 |
SRealX(0xffff0000,0xc0000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000),
|
sl@0
|
34 |
SRealX(0xffff0000,0xc0000000,0x00000000), KErrArgument
|
sl@0
|
35 |
),
|
sl@0
|
36 |
STwoOpTest(
|
sl@0
|
37 |
SRealX(0xffff0000,0xadf85458,0xa2bb4a9a), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
38 |
SRealX(0xffff0000,0xedf85458,0xa2bb4a9a), KErrArgument
|
sl@0
|
39 |
),
|
sl@0
|
40 |
STwoOpTest(
|
sl@0
|
41 |
SRealX(0xffff0000,0xadf85458,0xa2bb4a9a), SRealX(0x7fff0000,0x80000000,0x00000000),
|
sl@0
|
42 |
SRealX(0xffff0000,0xedf85458,0xa2bb4a9a), KErrArgument
|
sl@0
|
43 |
),
|
sl@0
|
44 |
STwoOpTest(
|
sl@0
|
45 |
SRealX(0xffff0000,0xadf85458,0xa2bb4a9a), SRealX(0xffff0000,0x80000000,0x00000000),
|
sl@0
|
46 |
SRealX(0xffff0000,0xedf85458,0xa2bb4a9a), KErrArgument
|
sl@0
|
47 |
),
|
sl@0
|
48 |
STwoOpTest(
|
sl@0
|
49 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
50 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), KErrArgument
|
sl@0
|
51 |
),
|
sl@0
|
52 |
STwoOpTest(
|
sl@0
|
53 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), SRealX(0x7fff0000,0x80000000,0x00000000),
|
sl@0
|
54 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), KErrArgument
|
sl@0
|
55 |
),
|
sl@0
|
56 |
STwoOpTest(
|
sl@0
|
57 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), SRealX(0xffff0000,0x80000000,0x00000000),
|
sl@0
|
58 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), KErrArgument
|
sl@0
|
59 |
),
|
sl@0
|
60 |
STwoOpTest(
|
sl@0
|
61 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), SRealX(0xffff0000,0xc0000000,0x00000000),
|
sl@0
|
62 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), KErrArgument
|
sl@0
|
63 |
),
|
sl@0
|
64 |
STwoOpTest(
|
sl@0
|
65 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), SRealX(0xffff0000,0xddb3d742,0xc265539f),
|
sl@0
|
66 |
SRealX(0xffff0000,0xddb3d742,0xc265539f), KErrArgument
|
sl@0
|
67 |
),
|
sl@0
|
68 |
STwoOpTest(
|
sl@0
|
69 |
SRealX(0xffff0000,0xadf85458,0xa2bb4a9a), SRealX(0xffff0000,0x80000000,0x00000001),
|
sl@0
|
70 |
SRealX(0xffff0000,0xedf85458,0xa2bb4a9a), KErrArgument
|
sl@0
|
71 |
),
|
sl@0
|
72 |
STwoOpTest(
|
sl@0
|
73 |
SRealX(0xffff0000,0xadf85458,0xa2bb4a9a), SRealX(0xffff0000,0xadf85458,0xa2bb4a9b),
|
sl@0
|
74 |
SRealX(0xffff0000,0xedf85458,0xa2bb4a9b), KErrArgument
|
sl@0
|
75 |
),
|
sl@0
|
76 |
STwoOpTest(
|
sl@0
|
77 |
SRealX(0xffff0000,0x80000000,0x00000001), SRealX(0xffff0000,0x80000000,0x00000002),
|
sl@0
|
78 |
SRealX(0xffff0000,0xc0000000,0x00000002), KErrArgument
|
sl@0
|
79 |
),
|
sl@0
|
80 |
STwoOpTest(
|
sl@0
|
81 |
SRealX(0xffff0000,0xadf85458,0xa2bb4a9a), SRealX(0xffff0000,0xddb3d742,0xc265539e),
|
sl@0
|
82 |
SRealX(0xffff0000,0xddb3d742,0xc265539e), KErrArgument
|
sl@0
|
83 |
)
|
sl@0
|
84 |
};
|
sl@0
|
85 |
|
sl@0
|
86 |
const STwoOpTest AdditionTests[] =
|
sl@0
|
87 |
{
|
sl@0
|
88 |
STwoOpTest(
|
sl@0
|
89 |
SRealX(0x00300000,0x80000000,0x00000000), SRealX(0x00300001,0x80000000,0x00008000),
|
sl@0
|
90 |
SRealX(0x00000001,0x00000000,0x00000000), KErrUnderflow
|
sl@0
|
91 |
),
|
sl@0
|
92 |
STwoOpTest(
|
sl@0
|
93 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
94 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
95 |
),
|
sl@0
|
96 |
STwoOpTest(
|
sl@0
|
97 |
SRealX(0x00000001,0x00000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
98 |
SRealX(0x00000001,0x00000000,0x00000000), KErrNone
|
sl@0
|
99 |
),
|
sl@0
|
100 |
STwoOpTest(
|
sl@0
|
101 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0x7fff0000,0xb504f333,0xf9de6484),
|
sl@0
|
102 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), KErrNone
|
sl@0
|
103 |
),
|
sl@0
|
104 |
STwoOpTest(
|
sl@0
|
105 |
SRealX(0x00000001,0x00000000,0x00000000), SRealX(0x7fff0000,0xb504f333,0xf9de6484),
|
sl@0
|
106 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), KErrNone
|
sl@0
|
107 |
),
|
sl@0
|
108 |
STwoOpTest(
|
sl@0
|
109 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000),
|
sl@0
|
110 |
SRealX(0x80000000,0x80000000,0x00000000), KErrNone
|
sl@0
|
111 |
),
|
sl@0
|
112 |
STwoOpTest(
|
sl@0
|
113 |
SRealX(0x80000000,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000),
|
sl@0
|
114 |
SRealX(0x80000000,0xc0000000,0x00000000), KErrNone
|
sl@0
|
115 |
),
|
sl@0
|
116 |
STwoOpTest(
|
sl@0
|
117 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fdf0000,0xb504f333,0xf9de6484),
|
sl@0
|
118 |
SRealX(0x7fff0200,0x80000000,0xb504f334), KErrNone
|
sl@0
|
119 |
),
|
sl@0
|
120 |
STwoOpTest(
|
sl@0
|
121 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fdb0000,0xb504f333,0xf9de6484),
|
sl@0
|
122 |
SRealX(0x7fff0100,0x80000000,0x0b504f33), KErrNone
|
sl@0
|
123 |
),
|
sl@0
|
124 |
STwoOpTest(
|
sl@0
|
125 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fe30000,0xb504f333,0xf9de6484),
|
sl@0
|
126 |
SRealX(0x7fff0200,0x8000000b,0x504f3340), KErrNone
|
sl@0
|
127 |
),
|
sl@0
|
128 |
STwoOpTest(
|
sl@0
|
129 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fef0000,0xb504f333,0xf9de6484),
|
sl@0
|
130 |
SRealX(0x7fff0100,0x8000b504,0xf333f9de), KErrNone
|
sl@0
|
131 |
),
|
sl@0
|
132 |
STwoOpTest(
|
sl@0
|
133 |
SRealX(0x7fff0000,0xb504f333,0xf9de0000), SRealX(0x7fef0000,0x80000001,0x64840000),
|
sl@0
|
134 |
SRealX(0x7fff0000,0xb5057333,0xf9df6484), KErrNone
|
sl@0
|
135 |
),
|
sl@0
|
136 |
STwoOpTest(
|
sl@0
|
137 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fc00000,0x80000000,0x00000000),
|
sl@0
|
138 |
SRealX(0x7fff0000,0x80000000,0x00000001), KErrNone
|
sl@0
|
139 |
),
|
sl@0
|
140 |
STwoOpTest(
|
sl@0
|
141 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fbf0000,0x80000000,0x00000000),
|
sl@0
|
142 |
SRealX(0x7fff0100,0x80000000,0x00000000), KErrNone
|
sl@0
|
143 |
),
|
sl@0
|
144 |
STwoOpTest(
|
sl@0
|
145 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fbf0000,0x80000000,0x00000001),
|
sl@0
|
146 |
SRealX(0x7fff0200,0x80000000,0x00000001), KErrNone
|
sl@0
|
147 |
),
|
sl@0
|
148 |
STwoOpTest(
|
sl@0
|
149 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fc00000,0xc0000000,0x00000000),
|
sl@0
|
150 |
SRealX(0x7fff0200,0x80000000,0x00000002), KErrNone
|
sl@0
|
151 |
),
|
sl@0
|
152 |
STwoOpTest(
|
sl@0
|
153 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fc00000,0xbfffffff,0xffffffff),
|
sl@0
|
154 |
SRealX(0x7fff0100,0x80000000,0x00000001), KErrNone
|
sl@0
|
155 |
),
|
sl@0
|
156 |
STwoOpTest(
|
sl@0
|
157 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fbe0000,0xffffffff,0xffffffff),
|
sl@0
|
158 |
SRealX(0x7fff0100,0x80000000,0x00000000), KErrNone
|
sl@0
|
159 |
),
|
sl@0
|
160 |
STwoOpTest(
|
sl@0
|
161 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x7fbe0000,0xffffffff,0xffffffff),
|
sl@0
|
162 |
SRealX(0x7fff0201,0x80000000,0x00000000), KErrNone
|
sl@0
|
163 |
),
|
sl@0
|
164 |
STwoOpTest(
|
sl@0
|
165 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000),
|
sl@0
|
166 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
167 |
),
|
sl@0
|
168 |
STwoOpTest(
|
sl@0
|
169 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x80050000,0xc8000000,0x00000000),
|
sl@0
|
170 |
SRealX(0x80050000,0xc6000000,0x00000000), KErrNone
|
sl@0
|
171 |
),
|
sl@0
|
172 |
STwoOpTest(
|
sl@0
|
173 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fff0001,0x8d04f333,0xf9de6484),
|
sl@0
|
174 |
SRealX(0x7ffb0001,0xd04f333f,0x9de64840), KErrNone
|
sl@0
|
175 |
),
|
sl@0
|
176 |
STwoOpTest(
|
sl@0
|
177 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x80000000),
|
sl@0
|
178 |
SRealX(0x7fdf0000,0x80000000,0x00000000), KErrNone
|
sl@0
|
179 |
),
|
sl@0
|
180 |
STwoOpTest(
|
sl@0
|
181 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000001),
|
sl@0
|
182 |
SRealX(0x7fc00000,0x80000000,0x00000000), KErrNone
|
sl@0
|
183 |
),
|
sl@0
|
184 |
STwoOpTest(
|
sl@0
|
185 |
SRealX(0x00300001,0x80000000,0x00000000), SRealX(0x00300000,0x80000000,0x00000000),
|
sl@0
|
186 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
187 |
),
|
sl@0
|
188 |
STwoOpTest(
|
sl@0
|
189 |
SRealX(0x00200001,0x80000000,0x00000000), SRealX(0x00200000,0x80000000,0x00000000),
|
sl@0
|
190 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
191 |
),
|
sl@0
|
192 |
STwoOpTest(
|
sl@0
|
193 |
SRealX(0x00100001,0x80000000,0x00000000), SRealX(0x00100000,0x80000000,0x00000000),
|
sl@0
|
194 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
195 |
),
|
sl@0
|
196 |
STwoOpTest(
|
sl@0
|
197 |
SRealX(0x00300001,0x80000000,0x00000000), SRealX(0x00300000,0x80000000,0x80000000),
|
sl@0
|
198 |
SRealX(0x00100000,0x80000000,0x00000000), KErrNone
|
sl@0
|
199 |
),
|
sl@0
|
200 |
STwoOpTest(
|
sl@0
|
201 |
SRealX(0x00300001,0x80000000,0x00000000), SRealX(0x00300000,0x80000000,0x00010000),
|
sl@0
|
202 |
SRealX(0x00010000,0x80000000,0x00000000), KErrNone
|
sl@0
|
203 |
),
|
sl@0
|
204 |
STwoOpTest(
|
sl@0
|
205 |
SRealX(0x00300001,0x80000000,0x00000000), SRealX(0x00300000,0x80000000,0x00008000),
|
sl@0
|
206 |
SRealX(0x00000000,0x00000000,0x00000000), KErrUnderflow
|
sl@0
|
207 |
),
|
sl@0
|
208 |
STwoOpTest(
|
sl@0
|
209 |
SRealX(0xfffe0000,0x80000000,0x00000000), SRealX(0xfffe0000,0x80000000,0x00000000),
|
sl@0
|
210 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
211 |
),
|
sl@0
|
212 |
STwoOpTest(
|
sl@0
|
213 |
SRealX(0xfffe0000,0xb504f333,0xf9de6484), SRealX(0xfffe0000,0xddb3d742,0xc265539e),
|
sl@0
|
214 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
215 |
),
|
sl@0
|
216 |
STwoOpTest(
|
sl@0
|
217 |
SRealX(0xfffe0000,0x80000000,0x00000000), SRealX(0xfffd0000,0xffffffff,0xf0000000),
|
sl@0
|
218 |
SRealX(0xfffe0000,0xffffffff,0xf8000000), KErrNone
|
sl@0
|
219 |
),
|
sl@0
|
220 |
STwoOpTest(
|
sl@0
|
221 |
SRealX(0xfffe0000,0x80000000,0x00000000), SRealX(0xfffd0000,0xffffffff,0xfffffffe),
|
sl@0
|
222 |
SRealX(0xfffe0000,0xffffffff,0xffffffff), KErrNone
|
sl@0
|
223 |
),
|
sl@0
|
224 |
STwoOpTest(
|
sl@0
|
225 |
SRealX(0xfffe0000,0x80000000,0x00000000), SRealX(0xfffd0000,0xffffffff,0xffffffff),
|
sl@0
|
226 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
227 |
),
|
sl@0
|
228 |
STwoOpTest(
|
sl@0
|
229 |
SRealX(0xfffe0000,0xf0000000,0x00000000), SRealX(0xfffa0000,0xffffffff,0xfffffff0),
|
sl@0
|
230 |
SRealX(0xfffe0000,0xffffffff,0xffffffff), KErrNone
|
sl@0
|
231 |
),
|
sl@0
|
232 |
STwoOpTest(
|
sl@0
|
233 |
SRealX(0xfffe0000,0xf0000000,0x00000000), SRealX(0xfffa0000,0xffffffff,0xfffffff7),
|
sl@0
|
234 |
SRealX(0xfffe0100,0xffffffff,0xffffffff), KErrNone
|
sl@0
|
235 |
),
|
sl@0
|
236 |
STwoOpTest(
|
sl@0
|
237 |
SRealX(0xfffe0000,0xf0000000,0x00000000), SRealX(0xfffa0000,0xffffffff,0xfffffff8),
|
sl@0
|
238 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
239 |
),
|
sl@0
|
240 |
STwoOpTest(
|
sl@0
|
241 |
SRealX(0xfffe0001,0xf0000000,0x00000000), SRealX(0xfffa0001,0xffffffff,0xfffffff0),
|
sl@0
|
242 |
SRealX(0xfffe0001,0xffffffff,0xffffffff), KErrNone
|
sl@0
|
243 |
),
|
sl@0
|
244 |
STwoOpTest(
|
sl@0
|
245 |
SRealX(0xfffe0001,0xf0000000,0x00000000), SRealX(0xfffa0001,0xffffffff,0xfffffff7),
|
sl@0
|
246 |
SRealX(0xfffe0101,0xffffffff,0xffffffff), KErrNone
|
sl@0
|
247 |
),
|
sl@0
|
248 |
STwoOpTest(
|
sl@0
|
249 |
SRealX(0xfffe0001,0xf0000000,0x00000000), SRealX(0xfffa0001,0xffffffff,0xfffffff8),
|
sl@0
|
250 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
251 |
),
|
sl@0
|
252 |
STwoOpTest(
|
sl@0
|
253 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xfffe0001,0xffffffff,0xffffffff),
|
sl@0
|
254 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
255 |
),
|
sl@0
|
256 |
STwoOpTest(
|
sl@0
|
257 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000),
|
sl@0
|
258 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
259 |
),
|
sl@0
|
260 |
STwoOpTest(
|
sl@0
|
261 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000),
|
sl@0
|
262 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
263 |
),
|
sl@0
|
264 |
STwoOpTest(
|
sl@0
|
265 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xfffe0000,0xffffffff,0xffffffff),
|
sl@0
|
266 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
267 |
),
|
sl@0
|
268 |
STwoOpTest(
|
sl@0
|
269 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000),
|
sl@0
|
270 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
271 |
),
|
sl@0
|
272 |
STwoOpTest(
|
sl@0
|
273 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000),
|
sl@0
|
274 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
275 |
),
|
sl@0
|
276 |
STwoOpTest(
|
sl@0
|
277 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000),
|
sl@0
|
278 |
SRealX(0xffff0001,0xc0000000,0x00000000), KErrArgument
|
sl@0
|
279 |
)
|
sl@0
|
280 |
};
|
sl@0
|
281 |
|
sl@0
|
282 |
const STwoOpTest MultiplicationTests[] =
|
sl@0
|
283 |
{
|
sl@0
|
284 |
STwoOpTest(
|
sl@0
|
285 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
286 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
287 |
),
|
sl@0
|
288 |
STwoOpTest(
|
sl@0
|
289 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
290 |
SRealX(0x00000001,0x00000000,0x00000000), KErrNone
|
sl@0
|
291 |
),
|
sl@0
|
292 |
STwoOpTest(
|
sl@0
|
293 |
SRealX(0x00000001,0x00000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
294 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
295 |
),
|
sl@0
|
296 |
STwoOpTest(
|
sl@0
|
297 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
298 |
SRealX(0x00000001,0x00000000,0x00000000), KErrNone
|
sl@0
|
299 |
),
|
sl@0
|
300 |
STwoOpTest(
|
sl@0
|
301 |
SRealX(0x7fff0001,0xb504f333,0xf9de6484), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
302 |
SRealX(0x00000000,0x00000000,0x00000000), KErrNone
|
sl@0
|
303 |
),
|
sl@0
|
304 |
STwoOpTest(
|
sl@0
|
305 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x7fff0000,0xb504f333,0xf9de6484),
|
sl@0
|
306 |
SRealX(0x7fff0100,0xffffffff,0xffffffff), KErrNone
|
sl@0
|
307 |
),
|
sl@0
|
308 |
STwoOpTest(
|
sl@0
|
309 |
SRealX(0x7fff0000,0xffffffff,0x00000000), SRealX(0x7fff0000,0xffffffff,0x00000000),
|
sl@0
|
310 |
SRealX(0x80000000,0xfffffffe,0x00000001), KErrNone
|
sl@0
|
311 |
),
|
sl@0
|
312 |
STwoOpTest(
|
sl@0
|
313 |
SRealX(0x7fff0000,0xffffffff,0xf0000000), SRealX(0x7fff0000,0xffffffff,0xf0000000),
|
sl@0
|
314 |
SRealX(0x80000100,0xffffffff,0xe0000000), KErrNone
|
sl@0
|
315 |
),
|
sl@0
|
316 |
STwoOpTest(
|
sl@0
|
317 |
SRealX(0x7fff0000,0xcccccccc,0xcccccccd), SRealX(0x7fff0000,0xcccccccc,0xcccccccd),
|
sl@0
|
318 |
SRealX(0x80000200,0xa3d70a3d,0x70a3d70b), KErrNone
|
sl@0
|
319 |
),
|
sl@0
|
320 |
STwoOpTest(
|
sl@0
|
321 |
SRealX(0x7ffe0000,0xcccccccc,0xcccccccd), SRealX(0x80010000,0xa0000000,0x00000000),
|
sl@0
|
322 |
SRealX(0x80010100,0x80000000,0x00000000), KErrNone
|
sl@0
|
323 |
),
|
sl@0
|
324 |
STwoOpTest(
|
sl@0
|
325 |
SRealX(0x80000000,0xadf85458,0xa2bb4a9a), SRealX(0x7ffd0000,0xbc5ab1b1,0x6779be36),
|
sl@0
|
326 |
SRealX(0x7fff0200,0x80000000,0x00000000), KErrNone
|
sl@0
|
327 |
),
|
sl@0
|
328 |
STwoOpTest(
|
sl@0
|
329 |
SRealX(0x80000001,0xadf85458,0xa2bb4a9a), SRealX(0x7ffd0000,0xbc5ab1b1,0x6779be36),
|
sl@0
|
330 |
SRealX(0x7fff0201,0x80000000,0x00000000), KErrNone
|
sl@0
|
331 |
),
|
sl@0
|
332 |
STwoOpTest(
|
sl@0
|
333 |
SRealX(0x80000001,0xadf85458,0xa2bb4a9a), SRealX(0x7ffd0001,0xbc5ab1b1,0x6779be36),
|
sl@0
|
334 |
SRealX(0x7fff0200,0x80000000,0x00000000), KErrNone
|
sl@0
|
335 |
),
|
sl@0
|
336 |
STwoOpTest(
|
sl@0
|
337 |
SRealX(0x80000000,0xadf85458,0xa2bb4a9a), SRealX(0x80000000,0xc90fdaa2,0x2168c235),
|
sl@0
|
338 |
SRealX(0x80020200,0x88a2c05a,0x2ea3a4f3), KErrNone
|
sl@0
|
339 |
),
|
sl@0
|
340 |
STwoOpTest(
|
sl@0
|
341 |
SRealX(0x7fff0000,0xc0000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000002),
|
sl@0
|
342 |
SRealX(0x7fff0000,0xc0000000,0x00000003), KErrNone
|
sl@0
|
343 |
),
|
sl@0
|
344 |
STwoOpTest(
|
sl@0
|
345 |
SRealX(0x7fff0000,0xc0000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000001),
|
sl@0
|
346 |
SRealX(0x7fff0200,0xc0000000,0x00000002), KErrNone
|
sl@0
|
347 |
),
|
sl@0
|
348 |
STwoOpTest(
|
sl@0
|
349 |
SRealX(0x7fff0000,0xa0000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000004),
|
sl@0
|
350 |
SRealX(0x7fff0000,0xa0000000,0x00000005), KErrNone
|
sl@0
|
351 |
),
|
sl@0
|
352 |
STwoOpTest(
|
sl@0
|
353 |
SRealX(0x7fff0000,0xa0000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000002),
|
sl@0
|
354 |
SRealX(0x7fff0100,0xa0000000,0x00000002), KErrNone
|
sl@0
|
355 |
),
|
sl@0
|
356 |
STwoOpTest(
|
sl@0
|
357 |
SRealX(0x65630000,0xb504f333,0xf9de6485), SRealX(0x1a9c0000,0xb504f333,0xf9de6485),
|
sl@0
|
358 |
SRealX(0x00010200,0x80000000,0x00000001), KErrNone
|
sl@0
|
359 |
),
|
sl@0
|
360 |
STwoOpTest(
|
sl@0
|
361 |
SRealX(0x65630000,0xb504f333,0xf9de6484), SRealX(0x1a9c0000,0xb504f333,0xf9de6484),
|
sl@0
|
362 |
SRealX(0x00000000,0x00000000,0x00000000), KErrUnderflow
|
sl@0
|
363 |
),
|
sl@0
|
364 |
STwoOpTest(
|
sl@0
|
365 |
SRealX(0x65630000,0xb504f333,0xf9de6484), SRealX(0x1a9b0000,0xc90fdaa2,0x2168c235),
|
sl@0
|
366 |
SRealX(0x00000000,0x00000000,0x00000000), KErrUnderflow
|
sl@0
|
367 |
),
|
sl@0
|
368 |
STwoOpTest(
|
sl@0
|
369 |
SRealX(0x00010000,0xb504f333,0xf9de6484), SRealX(0x00010000,0xc90fdaa2,0x2168c235),
|
sl@0
|
370 |
SRealX(0x00000000,0x00000000,0x00000000), KErrUnderflow
|
sl@0
|
371 |
),
|
sl@0
|
372 |
STwoOpTest(
|
sl@0
|
373 |
SRealX(0xaf6a0000,0xb504f333,0xf9de6484), SRealX(0xd0930000,0xb504f333,0xf9de6484),
|
sl@0
|
374 |
SRealX(0xfffe0100,0xffffffff,0xffffffff), KErrNone
|
sl@0
|
375 |
),
|
sl@0
|
376 |
STwoOpTest(
|
sl@0
|
377 |
SRealX(0xaf6a0000,0xb504f333,0xf9de6485), SRealX(0xd0930000,0xb504f333,0xf9de6485),
|
sl@0
|
378 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
379 |
),
|
sl@0
|
380 |
STwoOpTest(
|
sl@0
|
381 |
SRealX(0xaf6a0000,0xb504f333,0xf9de6484), SRealX(0xd0940000,0xc90fdaa2,0x2168c235),
|
sl@0
|
382 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
383 |
),
|
sl@0
|
384 |
STwoOpTest(
|
sl@0
|
385 |
SRealX(0xfffe0000,0xb504f333,0xf9de6484), SRealX(0xfffd0000,0xc90fdaa2,0x2168c235),
|
sl@0
|
386 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
387 |
),
|
sl@0
|
388 |
STwoOpTest(
|
sl@0
|
389 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000),
|
sl@0
|
390 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
391 |
),
|
sl@0
|
392 |
STwoOpTest(
|
sl@0
|
393 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000),
|
sl@0
|
394 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
395 |
),
|
sl@0
|
396 |
STwoOpTest(
|
sl@0
|
397 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000),
|
sl@0
|
398 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
399 |
),
|
sl@0
|
400 |
STwoOpTest(
|
sl@0
|
401 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0x00010000,0x80000000,0x00000000),
|
sl@0
|
402 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
403 |
),
|
sl@0
|
404 |
STwoOpTest(
|
sl@0
|
405 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
406 |
SRealX(0xffff0001,0xc0000000,0x00000000), KErrArgument
|
sl@0
|
407 |
)
|
sl@0
|
408 |
};
|
sl@0
|
409 |
|
sl@0
|
410 |
const STwoOpTest DivisionTests[] =
|
sl@0
|
411 |
{
|
sl@0
|
412 |
STwoOpTest(
|
sl@0
|
413 |
SRealX(0x80050000,0xc8000000,0x00000000), SRealX(0x80010000,0xa0000000,0x00000000),
|
sl@0
|
414 |
SRealX(0x80030000,0xa0000000,0x00000000), KErrNone
|
sl@0
|
415 |
),
|
sl@0
|
416 |
STwoOpTest(
|
sl@0
|
417 |
SRealX(0x80190000,0xbebc2000,0x00000000), SRealX(0x80050000,0xc8000000,0x00000000),
|
sl@0
|
418 |
SRealX(0x80120000,0xf4240000,0x00000000), KErrNone
|
sl@0
|
419 |
),
|
sl@0
|
420 |
STwoOpTest(
|
sl@0
|
421 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x80000000,0xc0000000,0x00000000),
|
sl@0
|
422 |
SRealX(0x7ffd0200,0xaaaaaaaa,0xaaaaaaab), KErrNone
|
sl@0
|
423 |
),
|
sl@0
|
424 |
STwoOpTest(
|
sl@0
|
425 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x80010000,0xa0000000,0x00000000),
|
sl@0
|
426 |
SRealX(0x7ffc0200,0xcccccccc,0xcccccccd), KErrNone
|
sl@0
|
427 |
),
|
sl@0
|
428 |
STwoOpTest(
|
sl@0
|
429 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x80050000,0xc8000000,0x00000000),
|
sl@0
|
430 |
SRealX(0x7ff80100,0xa3d70a3d,0x70a3d70a), KErrNone
|
sl@0
|
431 |
),
|
sl@0
|
432 |
STwoOpTest(
|
sl@0
|
433 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fff0000,0xb504f333,0xf9de6484),
|
sl@0
|
434 |
SRealX(0x7ffe0200,0xb504f333,0xf9de6485), KErrNone
|
sl@0
|
435 |
),
|
sl@0
|
436 |
STwoOpTest(
|
sl@0
|
437 |
SRealX(0x80000000,0xc90fdaa2,0x2168c235), SRealX(0x80000000,0xadf85458,0xa2bb4a9a),
|
sl@0
|
438 |
SRealX(0x7fff0200,0x93eedfb1,0x38edef80), KErrNone
|
sl@0
|
439 |
),
|
sl@0
|
440 |
STwoOpTest(
|
sl@0
|
441 |
SRealX(0x80000001,0xc90fdaa2,0x2168c235), SRealX(0x80000000,0xadf85458,0xa2bb4a9a),
|
sl@0
|
442 |
SRealX(0x7fff0201,0x93eedfb1,0x38edef80), KErrNone
|
sl@0
|
443 |
),
|
sl@0
|
444 |
STwoOpTest(
|
sl@0
|
445 |
SRealX(0x80000001,0xc90fdaa2,0x2168c235), SRealX(0x80000001,0xadf85458,0xa2bb4a9a),
|
sl@0
|
446 |
SRealX(0x7fff0200,0x93eedfb1,0x38edef80), KErrNone
|
sl@0
|
447 |
),
|
sl@0
|
448 |
STwoOpTest(
|
sl@0
|
449 |
SRealX(0x80000001,0xc90fdaa2,0x2168c235), SRealX(0x80000000,0x80000000,0x00000000),
|
sl@0
|
450 |
SRealX(0x7fff0001,0xc90fdaa2,0x2168c235), KErrNone
|
sl@0
|
451 |
),
|
sl@0
|
452 |
STwoOpTest(
|
sl@0
|
453 |
SRealX(0xc0000000,0xc90fdaa2,0x2168c235), SRealX(0x40010000,0x80000000,0x00000000),
|
sl@0
|
454 |
SRealX(0xfffe0000,0xc90fdaa2,0x2168c235), KErrNone
|
sl@0
|
455 |
),
|
sl@0
|
456 |
STwoOpTest(
|
sl@0
|
457 |
SRealX(0xc0000000,0xc90fdaa2,0x2168c235), SRealX(0x40000000,0x80000000,0x00000000),
|
sl@0
|
458 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
459 |
),
|
sl@0
|
460 |
STwoOpTest(
|
sl@0
|
461 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xfffe0000,0xffffffff,0xffffffff),
|
sl@0
|
462 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
463 |
),
|
sl@0
|
464 |
STwoOpTest(
|
sl@0
|
465 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
466 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
467 |
),
|
sl@0
|
468 |
STwoOpTest(
|
sl@0
|
469 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
470 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
471 |
),
|
sl@0
|
472 |
STwoOpTest(
|
sl@0
|
473 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
474 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
475 |
),
|
sl@0
|
476 |
STwoOpTest(
|
sl@0
|
477 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
478 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
479 |
),
|
sl@0
|
480 |
STwoOpTest(
|
sl@0
|
481 |
SRealX(0x00010000,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
482 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrDivideByZero
|
sl@0
|
483 |
),
|
sl@0
|
484 |
STwoOpTest(
|
sl@0
|
485 |
SRealX(0x00010001,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000),
|
sl@0
|
486 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrDivideByZero
|
sl@0
|
487 |
),
|
sl@0
|
488 |
STwoOpTest(
|
sl@0
|
489 |
SRealX(0x00010000,0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
490 |
SRealX(0xffff0001,0x80000000,0x00000000), KErrDivideByZero
|
sl@0
|
491 |
),
|
sl@0
|
492 |
STwoOpTest(
|
sl@0
|
493 |
SRealX(0x00010001,0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000),
|
sl@0
|
494 |
SRealX(0xffff0000,0x80000000,0x00000000), KErrDivideByZero
|
sl@0
|
495 |
),
|
sl@0
|
496 |
STwoOpTest(
|
sl@0
|
497 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000),
|
sl@0
|
498 |
SRealX(0xffff0001,0xc0000000,0x00000000), KErrArgument
|
sl@0
|
499 |
)
|
sl@0
|
500 |
};
|
sl@0
|
501 |
|
sl@0
|
502 |
|
sl@0
|
503 |
const SCompareTest ComparisonTests[] =
|
sl@0
|
504 |
{
|
sl@0
|
505 |
SCompareTest(
|
sl@0
|
506 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000), 2
|
sl@0
|
507 |
),
|
sl@0
|
508 |
SCompareTest(
|
sl@0
|
509 |
SRealX(0x80050000,0xc8000000,0x00000000), SRealX(0x80010000,0xa0000000,0x00000000), 4
|
sl@0
|
510 |
),
|
sl@0
|
511 |
SCompareTest(
|
sl@0
|
512 |
SRealX(0x80050001,0xc8000000,0x00000000), SRealX(0x80010001,0xa0000000,0x00000000), 1
|
sl@0
|
513 |
),
|
sl@0
|
514 |
SCompareTest(
|
sl@0
|
515 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x7fff0001,0x80000000,0x00000000), 2
|
sl@0
|
516 |
),
|
sl@0
|
517 |
SCompareTest(
|
sl@0
|
518 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fff0001,0x80000000,0x00000000), 4
|
sl@0
|
519 |
),
|
sl@0
|
520 |
SCompareTest(
|
sl@0
|
521 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000), 1
|
sl@0
|
522 |
),
|
sl@0
|
523 |
SCompareTest(
|
sl@0
|
524 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), 2
|
sl@0
|
525 |
),
|
sl@0
|
526 |
SCompareTest(
|
sl@0
|
527 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000), 2
|
sl@0
|
528 |
),
|
sl@0
|
529 |
SCompareTest(
|
sl@0
|
530 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x7fff0000,0xb504f333,0xf9de6484), 2
|
sl@0
|
531 |
),
|
sl@0
|
532 |
SCompareTest(
|
sl@0
|
533 |
SRealX(0x7fff0001,0xb504f333,0xf9de6484), SRealX(0x7fff0001,0xb504f333,0xf9de6484), 2
|
sl@0
|
534 |
),
|
sl@0
|
535 |
SCompareTest(
|
sl@0
|
536 |
SRealX(0x7fff0000,0xb504f333,0xf9de6485), SRealX(0x7fff0000,0xb504f333,0xf9de6484), 4
|
sl@0
|
537 |
),
|
sl@0
|
538 |
SCompareTest(
|
sl@0
|
539 |
SRealX(0x7fff0001,0xb504f333,0xf9de6485), SRealX(0x7fff0001,0xb504f333,0xf9de6484), 1
|
sl@0
|
540 |
),
|
sl@0
|
541 |
SCompareTest(
|
sl@0
|
542 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x7fff0000,0xb504f333,0xf9de6485), 1
|
sl@0
|
543 |
),
|
sl@0
|
544 |
SCompareTest(
|
sl@0
|
545 |
SRealX(0x7fff0001,0xb504f333,0xf9de6484), SRealX(0x7fff0001,0xb504f333,0xf9de6485), 4
|
sl@0
|
546 |
),
|
sl@0
|
547 |
SCompareTest(
|
sl@0
|
548 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x7ffe0000,0xb504f333,0xf9de6484), 4
|
sl@0
|
549 |
),
|
sl@0
|
550 |
SCompareTest(
|
sl@0
|
551 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x80000000,0xb504f333,0xf9de6484), 1
|
sl@0
|
552 |
),
|
sl@0
|
553 |
SCompareTest(
|
sl@0
|
554 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xfffe0000,0xffffffff,0xffffffff), 4
|
sl@0
|
555 |
),
|
sl@0
|
556 |
SCompareTest(
|
sl@0
|
557 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), 4
|
sl@0
|
558 |
),
|
sl@0
|
559 |
SCompareTest(
|
sl@0
|
560 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), 4
|
sl@0
|
561 |
),
|
sl@0
|
562 |
SCompareTest(
|
sl@0
|
563 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000), 4
|
sl@0
|
564 |
),
|
sl@0
|
565 |
SCompareTest(
|
sl@0
|
566 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xfffe0001,0xffffffff,0xffffffff), 1
|
sl@0
|
567 |
),
|
sl@0
|
568 |
SCompareTest(
|
sl@0
|
569 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), 1
|
sl@0
|
570 |
),
|
sl@0
|
571 |
SCompareTest(
|
sl@0
|
572 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), 1
|
sl@0
|
573 |
),
|
sl@0
|
574 |
SCompareTest(
|
sl@0
|
575 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000), 1
|
sl@0
|
576 |
),
|
sl@0
|
577 |
SCompareTest(
|
sl@0
|
578 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), 2
|
sl@0
|
579 |
),
|
sl@0
|
580 |
SCompareTest(
|
sl@0
|
581 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), 2
|
sl@0
|
582 |
),
|
sl@0
|
583 |
SCompareTest(
|
sl@0
|
584 |
SRealX(0xffff0001,0xc0000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), 8
|
sl@0
|
585 |
),
|
sl@0
|
586 |
SCompareTest(
|
sl@0
|
587 |
SRealX(0xffff0001,0xc0000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), 8
|
sl@0
|
588 |
),
|
sl@0
|
589 |
SCompareTest(
|
sl@0
|
590 |
SRealX(0xffff0000,0x80000000,0x00000001), SRealX(0x7fff0001,0x80000000,0x00000000), 8
|
sl@0
|
591 |
),
|
sl@0
|
592 |
SCompareTest(
|
sl@0
|
593 |
SRealX(0xffff0000,0x80000000,0x00000001), SRealX(0xffff0001,0xddb3d742,0xc265539e), 8
|
sl@0
|
594 |
),
|
sl@0
|
595 |
SCompareTest(
|
sl@0
|
596 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0xffff0001,0xddb3d742,0xc265539e), 8
|
sl@0
|
597 |
),
|
sl@0
|
598 |
SCompareTest(
|
sl@0
|
599 |
SRealX(0xffee0000,0x80005000,0x40000000), SRealX(0xffff0001,0xddb3d742,0xc265539e), 8
|
sl@0
|
600 |
),
|
sl@0
|
601 |
SCompareTest(
|
sl@0
|
602 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0001,0xddb3d742,0xc265539e), 8
|
sl@0
|
603 |
)
|
sl@0
|
604 |
};
|
sl@0
|
605 |
|
sl@0
|
606 |
const SOneOpTest UnaryPlusTests[] =
|
sl@0
|
607 |
{
|
sl@0
|
608 |
SOneOpTest(
|
sl@0
|
609 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000), 0
|
sl@0
|
610 |
),
|
sl@0
|
611 |
SOneOpTest(
|
sl@0
|
612 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x7fff0000,0xb504f333,0xf9de6484), 0
|
sl@0
|
613 |
),
|
sl@0
|
614 |
SOneOpTest(
|
sl@0
|
615 |
SRealX(0xffff0001,0xb504f333,0xf9de6484), SRealX(0xffff0001,0xb504f333,0xf9de6484), 0
|
sl@0
|
616 |
),
|
sl@0
|
617 |
};
|
sl@0
|
618 |
|
sl@0
|
619 |
const SOneOpTest UnaryMinusTests[] =
|
sl@0
|
620 |
{
|
sl@0
|
621 |
SOneOpTest(
|
sl@0
|
622 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x7fff0001,0x80000000,0x00000000), 0
|
sl@0
|
623 |
),
|
sl@0
|
624 |
SOneOpTest(
|
sl@0
|
625 |
SRealX(0x7fff0000,0xb504f333,0xf9de6484), SRealX(0x7fff0001,0xb504f333,0xf9de6484), 0
|
sl@0
|
626 |
),
|
sl@0
|
627 |
SOneOpTest(
|
sl@0
|
628 |
SRealX(0xffff0000,0xb504f333,0xf9de6484), SRealX(0xffff0001,0xb504f333,0xf9de6484), 0
|
sl@0
|
629 |
),
|
sl@0
|
630 |
SOneOpTest(
|
sl@0
|
631 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), 0
|
sl@0
|
632 |
),
|
sl@0
|
633 |
SOneOpTest(
|
sl@0
|
634 |
SRealX(0x00000000,0x00000000,0x00000000), SRealX(0x00000001,0x00000000,0x00000000), 0
|
sl@0
|
635 |
),
|
sl@0
|
636 |
};
|
sl@0
|
637 |
|
sl@0
|
638 |
const SOneOpTest IncTests[] =
|
sl@0
|
639 |
{
|
sl@0
|
640 |
SOneOpTest(
|
sl@0
|
641 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x80000000,0x80000000,0x00000000), 0
|
sl@0
|
642 |
),
|
sl@0
|
643 |
SOneOpTest(
|
sl@0
|
644 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), 0
|
sl@0
|
645 |
),
|
sl@0
|
646 |
SOneOpTest(
|
sl@0
|
647 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
648 |
),
|
sl@0
|
649 |
SOneOpTest(
|
sl@0
|
650 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
651 |
),
|
sl@0
|
652 |
SOneOpTest(
|
sl@0
|
653 |
SRealX(0xffff0000,0xb504f333,0xf9de6484), SRealX(0xffff0000,0xf504f333,0xf9de6484), KErrArgument
|
sl@0
|
654 |
),
|
sl@0
|
655 |
SOneOpTest(
|
sl@0
|
656 |
SRealX(0x00000001,0x00000000,0x00000000), SRealX(0x7fff0000,0x80000000,0x00000000), KErrNone
|
sl@0
|
657 |
),
|
sl@0
|
658 |
SOneOpTest(
|
sl@0
|
659 |
SRealX(0x803e0000,0xddb3d742,0xffffffff), SRealX(0x803e0000,0xddb3d743,0x00000000), KErrNone
|
sl@0
|
660 |
)
|
sl@0
|
661 |
};
|
sl@0
|
662 |
|
sl@0
|
663 |
const SOneOpTest DecTests[] =
|
sl@0
|
664 |
{
|
sl@0
|
665 |
SOneOpTest(
|
sl@0
|
666 |
SRealX(0x7fff0000,0x80000000,0x00000000), SRealX(0x00000000,0x00000000,0x00000000), 0
|
sl@0
|
667 |
),
|
sl@0
|
668 |
SOneOpTest(
|
sl@0
|
669 |
SRealX(0x7fff0001,0x80000000,0x00000000), SRealX(0x80000001,0x80000000,0x00000000), 0
|
sl@0
|
670 |
),
|
sl@0
|
671 |
SOneOpTest(
|
sl@0
|
672 |
SRealX(0xffff0000,0x80000000,0x00000000), SRealX(0xffff0000,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
673 |
),
|
sl@0
|
674 |
SOneOpTest(
|
sl@0
|
675 |
SRealX(0xffff0001,0x80000000,0x00000000), SRealX(0xffff0001,0x80000000,0x00000000), KErrOverflow
|
sl@0
|
676 |
),
|
sl@0
|
677 |
SOneOpTest(
|
sl@0
|
678 |
SRealX(0xffff0000,0xb504f333,0xf9de6484), SRealX(0xffff0000,0xf504f333,0xf9de6484), KErrArgument
|
sl@0
|
679 |
),
|
sl@0
|
680 |
SOneOpTest(
|
sl@0
|
681 |
SRealX(0x00000001,0x00000000,0x00000000), SRealX(0x7fff0001,0x80000000,0x00000000), KErrNone
|
sl@0
|
682 |
),
|
sl@0
|
683 |
SOneOpTest(
|
sl@0
|
684 |
SRealX(0x803e0000,0xddb3d743,0x00000000), SRealX(0x803e0000,0xddb3d742,0xffffffff), KErrNone
|
sl@0
|
685 |
)
|
sl@0
|
686 |
};
|
sl@0
|
687 |
|
sl@0
|
688 |
GLDEF_D const TInt NumBinaryOpNaNTests=sizeof(BinaryOpNaNTests)/sizeof(STwoOpTest);
|
sl@0
|
689 |
GLDEF_D const TInt NumAdditionTests=sizeof(AdditionTests)/sizeof(STwoOpTest);
|
sl@0
|
690 |
GLDEF_D const TInt NumMultiplicationTests=sizeof(MultiplicationTests)/sizeof(STwoOpTest);
|
sl@0
|
691 |
GLDEF_D const TInt NumDivisionTests=sizeof(DivisionTests)/sizeof(STwoOpTest);
|
sl@0
|
692 |
GLDEF_D const TInt NumComparisonTests=sizeof(ComparisonTests)/sizeof(SCompareTest);
|
sl@0
|
693 |
GLDEF_D const TInt NumUnaryPlusTests=sizeof(UnaryPlusTests)/sizeof(SOneOpTest);
|
sl@0
|
694 |
GLDEF_D const TInt NumUnaryMinusTests=sizeof(UnaryMinusTests)/sizeof(SOneOpTest);
|
sl@0
|
695 |
GLDEF_D const TInt NumIncTests=sizeof(IncTests)/sizeof(SOneOpTest);
|
sl@0
|
696 |
GLDEF_D const TInt NumDecTests=sizeof(DecTests)/sizeof(SOneOpTest);
|