Lines Matching refs:EXPECT_EQ
43 EXPECT_EQ(getRounded32(0, 0, false), SP32(0, 0)); in TEST()
44 EXPECT_EQ(getRounded32(0, 0, true), SP32(1, 0)); in TEST()
45 EXPECT_EQ(getRounded32(20, 21, true), SP32(21, 21)); in TEST()
46 EXPECT_EQ(getRounded32(UINT32_MAX, 0, false), SP32(UINT32_MAX, 0)); in TEST()
47 EXPECT_EQ(getRounded32(UINT32_MAX, 0, true), SP32(1 << 31, 1)); in TEST()
49 EXPECT_EQ(getRounded64(0, 0, false), SP64(0, 0)); in TEST()
50 EXPECT_EQ(getRounded64(0, 0, true), SP64(1, 0)); in TEST()
51 EXPECT_EQ(getRounded64(20, 21, true), SP64(21, 21)); in TEST()
52 EXPECT_EQ(getRounded64(UINT32_MAX, 0, false), SP64(UINT32_MAX, 0)); in TEST()
53 EXPECT_EQ(getRounded64(UINT32_MAX, 0, true), SP64(UINT64_C(1) << 32, 0)); in TEST()
54 EXPECT_EQ(getRounded64(UINT64_MAX, 0, false), SP64(UINT64_MAX, 0)); in TEST()
55 EXPECT_EQ(getRounded64(UINT64_MAX, 0, true), SP64(UINT64_C(1) << 63, 1)); in TEST()
60 EXPECT_EQ(getAdjusted32(0), SP32(0, 0)); in TEST()
61 EXPECT_EQ(getAdjusted32(0, 5), SP32(0, 5)); in TEST()
62 EXPECT_EQ(getAdjusted32(UINT32_MAX), SP32(UINT32_MAX, 0)); in TEST()
63 EXPECT_EQ(getAdjusted32(Max32In64 << 1), SP32(UINT32_MAX, 1)); in TEST()
64 EXPECT_EQ(getAdjusted32(Max32In64 << 1, 1), SP32(UINT32_MAX, 2)); in TEST()
65 EXPECT_EQ(getAdjusted32(Max32In64 << 31), SP32(UINT32_MAX, 31)); in TEST()
66 EXPECT_EQ(getAdjusted32(Max32In64 << 32), SP32(UINT32_MAX, 32)); in TEST()
67 EXPECT_EQ(getAdjusted32(Max32In64 + 1), SP32(1u << 31, 1)); in TEST()
68 EXPECT_EQ(getAdjusted32(UINT64_MAX), SP32(1u << 31, 33)); in TEST()
70 EXPECT_EQ(getAdjusted64(0), SP64(0, 0)); in TEST()
71 EXPECT_EQ(getAdjusted64(0, 5), SP64(0, 5)); in TEST()
72 EXPECT_EQ(getAdjusted64(UINT32_MAX), SP64(UINT32_MAX, 0)); in TEST()
73 EXPECT_EQ(getAdjusted64(Max32In64 << 1), SP64(Max32In64 << 1, 0)); in TEST()
74 EXPECT_EQ(getAdjusted64(Max32In64 << 1, 1), SP64(Max32In64 << 1, 1)); in TEST()
75 EXPECT_EQ(getAdjusted64(Max32In64 << 31), SP64(Max32In64 << 31, 0)); in TEST()
76 EXPECT_EQ(getAdjusted64(Max32In64 << 32), SP64(Max32In64 << 32, 0)); in TEST()
77 EXPECT_EQ(getAdjusted64(Max32In64 + 1), SP64(Max32In64 + 1, 0)); in TEST()
78 EXPECT_EQ(getAdjusted64(UINT64_MAX), SP64(UINT64_MAX, 0)); in TEST()
83 EXPECT_EQ(SP32(0, 0), getProduct32(0, 0)); in TEST()
84 EXPECT_EQ(SP32(0, 0), getProduct32(0, 1)); in TEST()
85 EXPECT_EQ(SP32(0, 0), getProduct32(0, 33)); in TEST()
88 EXPECT_EQ(SP32(6, 0), getProduct32(2, 3)); in TEST()
89 EXPECT_EQ(SP32(UINT16_MAX / 3 * UINT16_MAX / 5 * 2, 0), in TEST()
97 EXPECT_EQ(SP32(0xf00f1001, 4), getProduct32(0xf00010, 0x1001)); in TEST()
104 EXPECT_EQ(SP32(0xf00f0700, 8), getProduct32(0xf000070, 0x1001)); in TEST()
111 EXPECT_EQ(SP32(0xf00f0801, 8), getProduct32(0xf000080, 0x1001)); in TEST()
114 EXPECT_EQ(SP32(0, 0), getProduct32(1, 0)); in TEST()
115 EXPECT_EQ(SP32(0, 0), getProduct32(33, 0)); in TEST()
116 EXPECT_EQ(SP32(6, 0), getProduct32(3, 2)); in TEST()
117 EXPECT_EQ(SP32(UINT16_MAX / 3 * UINT16_MAX / 5 * 2, 0), in TEST()
119 EXPECT_EQ(SP32(0xf00f1001, 4), getProduct32(0x1001, 0xf00010)); in TEST()
120 EXPECT_EQ(SP32(0xf00f0700, 8), getProduct32(0x1001, 0xf000070)); in TEST()
121 EXPECT_EQ(SP32(0xf00f0801, 8), getProduct32(0x1001, 0xf000080)); in TEST()
124 EXPECT_EQ(SP64(UINT64_C(1) << 63, 64), in TEST()
129 EXPECT_EQ(SP64(UINT64_C(9223372036854775810), 64), in TEST()
136 EXPECT_EQ(SP32(0, 0), getQuotient32(0, 0)); in TEST()
137 EXPECT_EQ(SP32(0, 0), getQuotient32(0, 1)); in TEST()
138 EXPECT_EQ(SP32(0, 0), getQuotient32(0, 73)); in TEST()
139 EXPECT_EQ(SP32(UINT32_MAX, MaxScale), getQuotient32(1, 0)); in TEST()
140 EXPECT_EQ(SP32(UINT32_MAX, MaxScale), getQuotient32(6, 0)); in TEST()
143 EXPECT_EQ(SP32(1u << 31, -31), getQuotient32(1, 1)); in TEST()
144 EXPECT_EQ(SP32(1u << 31, -30), getQuotient32(2, 1)); in TEST()
145 EXPECT_EQ(SP32(1u << 31, -33), getQuotient32(4, 16)); in TEST()
146 EXPECT_EQ(SP32(7u << 29, -29), getQuotient32(7, 1)); in TEST()
147 EXPECT_EQ(SP32(7u << 29, -30), getQuotient32(7, 2)); in TEST()
148 EXPECT_EQ(SP32(7u << 29, -33), getQuotient32(7, 16)); in TEST()
151 EXPECT_EQ(SP32(3u << 30, -30), getQuotient32(9, 3)); in TEST()
152 EXPECT_EQ(SP32(9u << 28, -28), getQuotient32(63, 7)); in TEST()
155 EXPECT_EQ(SP32(0xaaaaaaab, -33), getQuotient32(1, 3)); in TEST()
156 EXPECT_EQ(SP32(0xd5555555, -31), getQuotient32(5, 3)); in TEST()
170 EXPECT_EQ(SP64(0, 0), getQuotient64(0, 0)); in TEST()
171 EXPECT_EQ(SP64(0, 0), getQuotient64(0, 1)); in TEST()
172 EXPECT_EQ(SP64(0, 0), getQuotient64(0, 73)); in TEST()
173 EXPECT_EQ(SP64(UINT64_MAX, MaxScale), getQuotient64(1, 0)); in TEST()
174 EXPECT_EQ(SP64(UINT64_MAX, MaxScale), getQuotient64(6, 0)); in TEST()
177 EXPECT_EQ(SP64(1, 0), getQuotient64(1, 1)); in TEST()
178 EXPECT_EQ(SP64(2, 0), getQuotient64(2, 1)); in TEST()
179 EXPECT_EQ(SP64(4, -4), getQuotient64(4, 16)); in TEST()
180 EXPECT_EQ(SP64(7, 0), getQuotient64(7, 1)); in TEST()
181 EXPECT_EQ(SP64(7, -1), getQuotient64(7, 2)); in TEST()
182 EXPECT_EQ(SP64(7, -4), getQuotient64(7, 16)); in TEST()
185 EXPECT_EQ(SP64(UINT64_C(3) << 60, -60), getQuotient64(9, 3)); in TEST()
186 EXPECT_EQ(SP64(UINT64_C(9) << 58, -58), getQuotient64(63, 7)); in TEST()
189 EXPECT_EQ(SP64(0xaaaaaaaaaaaaaaab, -65), getQuotient64(1, 3)); in TEST()
190 EXPECT_EQ(SP64(0xd555555555555555, -63), getQuotient64(5, 3)); in TEST()
194 EXPECT_EQ(0, getLg(UINT32_C(1), 0)); in TEST()
195 EXPECT_EQ(1, getLg(UINT32_C(1), 1)); in TEST()
196 EXPECT_EQ(1, getLg(UINT32_C(2), 0)); in TEST()
197 EXPECT_EQ(3, getLg(UINT32_C(1), 3)); in TEST()
198 EXPECT_EQ(3, getLg(UINT32_C(7), 0)); in TEST()
199 EXPECT_EQ(3, getLg(UINT32_C(8), 0)); in TEST()
200 EXPECT_EQ(3, getLg(UINT32_C(9), 0)); in TEST()
201 EXPECT_EQ(3, getLg(UINT32_C(64), -3)); in TEST()
202 EXPECT_EQ(31, getLg((UINT32_MAX >> 1) + 2, 0)); in TEST()
203 EXPECT_EQ(32, getLg(UINT32_MAX, 0)); in TEST()
204 EXPECT_EQ(-1, getLg(UINT32_C(1), -1)); in TEST()
205 EXPECT_EQ(-1, getLg(UINT32_C(2), -2)); in TEST()
206 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), -1)); in TEST()
207 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), 0)); in TEST()
208 EXPECT_EQ(INT32_MIN, getLg(UINT32_C(0), 1)); in TEST()
210 EXPECT_EQ(0, getLg(UINT64_C(1), 0)); in TEST()
211 EXPECT_EQ(1, getLg(UINT64_C(1), 1)); in TEST()
212 EXPECT_EQ(1, getLg(UINT64_C(2), 0)); in TEST()
213 EXPECT_EQ(3, getLg(UINT64_C(1), 3)); in TEST()
214 EXPECT_EQ(3, getLg(UINT64_C(7), 0)); in TEST()
215 EXPECT_EQ(3, getLg(UINT64_C(8), 0)); in TEST()
216 EXPECT_EQ(3, getLg(UINT64_C(9), 0)); in TEST()
217 EXPECT_EQ(3, getLg(UINT64_C(64), -3)); in TEST()
218 EXPECT_EQ(63, getLg((UINT64_MAX >> 1) + 2, 0)); in TEST()
219 EXPECT_EQ(64, getLg(UINT64_MAX, 0)); in TEST()
220 EXPECT_EQ(-1, getLg(UINT64_C(1), -1)); in TEST()
221 EXPECT_EQ(-1, getLg(UINT64_C(2), -2)); in TEST()
222 EXPECT_EQ(INT32_MIN, getLg(UINT64_C(0), -1)); in TEST()
223 EXPECT_EQ(INT32_MIN, getLg(UINT64_C(0), 0)); in TEST()
224 EXPECT_EQ(INT32_MIN, getLg(UINT64_C(0), 1)); in TEST()
228 EXPECT_EQ(0, getLgFloor(UINT32_C(1), 0)); in TEST()
229 EXPECT_EQ(1, getLgFloor(UINT32_C(1), 1)); in TEST()
230 EXPECT_EQ(1, getLgFloor(UINT32_C(2), 0)); in TEST()
231 EXPECT_EQ(2, getLgFloor(UINT32_C(7), 0)); in TEST()
232 EXPECT_EQ(3, getLgFloor(UINT32_C(1), 3)); in TEST()
233 EXPECT_EQ(3, getLgFloor(UINT32_C(8), 0)); in TEST()
234 EXPECT_EQ(3, getLgFloor(UINT32_C(9), 0)); in TEST()
235 EXPECT_EQ(3, getLgFloor(UINT32_C(64), -3)); in TEST()
236 EXPECT_EQ(31, getLgFloor((UINT32_MAX >> 1) + 2, 0)); in TEST()
237 EXPECT_EQ(31, getLgFloor(UINT32_MAX, 0)); in TEST()
238 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), -1)); in TEST()
239 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), 0)); in TEST()
240 EXPECT_EQ(INT32_MIN, getLgFloor(UINT32_C(0), 1)); in TEST()
242 EXPECT_EQ(0, getLgFloor(UINT64_C(1), 0)); in TEST()
243 EXPECT_EQ(1, getLgFloor(UINT64_C(1), 1)); in TEST()
244 EXPECT_EQ(1, getLgFloor(UINT64_C(2), 0)); in TEST()
245 EXPECT_EQ(2, getLgFloor(UINT64_C(7), 0)); in TEST()
246 EXPECT_EQ(3, getLgFloor(UINT64_C(1), 3)); in TEST()
247 EXPECT_EQ(3, getLgFloor(UINT64_C(8), 0)); in TEST()
248 EXPECT_EQ(3, getLgFloor(UINT64_C(9), 0)); in TEST()
249 EXPECT_EQ(3, getLgFloor(UINT64_C(64), -3)); in TEST()
250 EXPECT_EQ(63, getLgFloor((UINT64_MAX >> 1) + 2, 0)); in TEST()
251 EXPECT_EQ(63, getLgFloor(UINT64_MAX, 0)); in TEST()
252 EXPECT_EQ(INT32_MIN, getLgFloor(UINT64_C(0), -1)); in TEST()
253 EXPECT_EQ(INT32_MIN, getLgFloor(UINT64_C(0), 0)); in TEST()
254 EXPECT_EQ(INT32_MIN, getLgFloor(UINT64_C(0), 1)); in TEST()
258 EXPECT_EQ(0, getLgCeiling(UINT32_C(1), 0)); in TEST()
259 EXPECT_EQ(1, getLgCeiling(UINT32_C(1), 1)); in TEST()
260 EXPECT_EQ(1, getLgCeiling(UINT32_C(2), 0)); in TEST()
261 EXPECT_EQ(3, getLgCeiling(UINT32_C(1), 3)); in TEST()
262 EXPECT_EQ(3, getLgCeiling(UINT32_C(7), 0)); in TEST()
263 EXPECT_EQ(3, getLgCeiling(UINT32_C(8), 0)); in TEST()
264 EXPECT_EQ(3, getLgCeiling(UINT32_C(64), -3)); in TEST()
265 EXPECT_EQ(4, getLgCeiling(UINT32_C(9), 0)); in TEST()
266 EXPECT_EQ(32, getLgCeiling(UINT32_MAX, 0)); in TEST()
267 EXPECT_EQ(32, getLgCeiling((UINT32_MAX >> 1) + 2, 0)); in TEST()
268 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), -1)); in TEST()
269 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), 0)); in TEST()
270 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT32_C(0), 1)); in TEST()
272 EXPECT_EQ(0, getLgCeiling(UINT64_C(1), 0)); in TEST()
273 EXPECT_EQ(1, getLgCeiling(UINT64_C(1), 1)); in TEST()
274 EXPECT_EQ(1, getLgCeiling(UINT64_C(2), 0)); in TEST()
275 EXPECT_EQ(3, getLgCeiling(UINT64_C(1), 3)); in TEST()
276 EXPECT_EQ(3, getLgCeiling(UINT64_C(7), 0)); in TEST()
277 EXPECT_EQ(3, getLgCeiling(UINT64_C(8), 0)); in TEST()
278 EXPECT_EQ(3, getLgCeiling(UINT64_C(64), -3)); in TEST()
279 EXPECT_EQ(4, getLgCeiling(UINT64_C(9), 0)); in TEST()
280 EXPECT_EQ(64, getLgCeiling((UINT64_MAX >> 1) + 2, 0)); in TEST()
281 EXPECT_EQ(64, getLgCeiling(UINT64_MAX, 0)); in TEST()
282 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT64_C(0), -1)); in TEST()
283 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT64_C(0), 0)); in TEST()
284 EXPECT_EQ(INT32_MIN, getLgCeiling(UINT64_C(0), 1)); in TEST()
288 EXPECT_EQ(0, compare(UINT32_C(0), 0, UINT32_C(0), 1)); in TEST()
289 EXPECT_EQ(0, compare(UINT32_C(0), 0, UINT32_C(0), -10)); in TEST()
290 EXPECT_EQ(0, compare(UINT32_C(0), 0, UINT32_C(0), 20)); in TEST()
291 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(64), -3)); in TEST()
292 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(32), -2)); in TEST()
293 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(16), -1)); in TEST()
294 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(8), 0)); in TEST()
295 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(4), 1)); in TEST()
296 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(2), 2)); in TEST()
297 EXPECT_EQ(0, compare(UINT32_C(8), 0, UINT32_C(1), 3)); in TEST()
298 EXPECT_EQ(-1, compare(UINT32_C(0), 0, UINT32_C(1), 3)); in TEST()
299 EXPECT_EQ(-1, compare(UINT32_C(7), 0, UINT32_C(1), 3)); in TEST()
300 EXPECT_EQ(-1, compare(UINT32_C(7), 0, UINT32_C(64), -3)); in TEST()
301 EXPECT_EQ(1, compare(UINT32_C(9), 0, UINT32_C(1), 3)); in TEST()
302 EXPECT_EQ(1, compare(UINT32_C(9), 0, UINT32_C(64), -3)); in TEST()
303 EXPECT_EQ(1, compare(UINT32_C(9), 0, UINT32_C(0), 0)); in TEST()
305 EXPECT_EQ(0, compare(UINT64_C(0), 0, UINT64_C(0), 1)); in TEST()
306 EXPECT_EQ(0, compare(UINT64_C(0), 0, UINT64_C(0), -10)); in TEST()
307 EXPECT_EQ(0, compare(UINT64_C(0), 0, UINT64_C(0), 20)); in TEST()
308 EXPECT_EQ(0, compare(UINT64_C(8), 0, UINT64_C(64), -3)); in TEST()
309 EXPECT_EQ(0, compare(UINT64_C(8), 0, UINT64_C(32), -2)); in TEST()
310 EXPECT_EQ(0, compare(UINT64_C(8), 0, UINT64_C(16), -1)); in TEST()
311 EXPECT_EQ(0, compare(UINT64_C(8), 0, UINT64_C(8), 0)); in TEST()
312 EXPECT_EQ(0, compare(UINT64_C(8), 0, UINT64_C(4), 1)); in TEST()
313 EXPECT_EQ(0, compare(UINT64_C(8), 0, UINT64_C(2), 2)); in TEST()
314 EXPECT_EQ(0, compare(UINT64_C(8), 0, UINT64_C(1), 3)); in TEST()
315 EXPECT_EQ(-1, compare(UINT64_C(0), 0, UINT64_C(1), 3)); in TEST()
316 EXPECT_EQ(-1, compare(UINT64_C(7), 0, UINT64_C(1), 3)); in TEST()
317 EXPECT_EQ(-1, compare(UINT64_C(7), 0, UINT64_C(64), -3)); in TEST()
318 EXPECT_EQ(1, compare(UINT64_C(9), 0, UINT64_C(1), 3)); in TEST()
319 EXPECT_EQ(1, compare(UINT64_C(9), 0, UINT64_C(64), -3)); in TEST()
320 EXPECT_EQ(1, compare(UINT64_C(9), 0, UINT64_C(0), 0)); in TEST()
321 EXPECT_EQ(-1, compare(UINT64_MAX, 0, UINT64_C(1), 64)); in TEST()
335 EXPECT_EQ(SOut, matchScales(LDx, LSx, RDx, RSx)); \ in TEST()
336 EXPECT_EQ(LDy, LDx); \ in TEST()
337 EXPECT_EQ(RDy, RDx); \ in TEST()
339 EXPECT_EQ(Sy, LSx); \ in TEST()
341 EXPECT_EQ(Sy, RSx); \ in TEST()
387 EXPECT_EQ(SP32(1, 0), getSum32(0, 0, 1, 0)); in TEST()
388 EXPECT_EQ(SP32(8, -3), getSum32(0, 0, 8, -3)); in TEST()
389 EXPECT_EQ(SP32(UINT32_MAX, 0), getSum32(0, 0, UINT32_MAX, 0)); in TEST()
392 EXPECT_EQ(SP32(2, 0), getSum32(1, 0, 1, 0)); in TEST()
393 EXPECT_EQ(SP32(3, 0), getSum32(1, 0, 2, 0)); in TEST()
394 EXPECT_EQ(SP32(67, 0), getSum32(7, 0, 60, 0)); in TEST()
397 EXPECT_EQ(SP32(3, 0), getSum32(1, 0, 1, 1)); in TEST()
398 EXPECT_EQ(SP32(4, 0), getSum32(2, 0, 1, 1)); in TEST()
401 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 32, 1, 0)); in TEST()
402 EXPECT_EQ(SP32(UINT32_C(1) << 31, -31), getSum32(1, -32, 1, 0)); in TEST()
405 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), getSum32(1, 32, 1, 1)); in TEST()
406 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -32), getSum32(1, -32, 1, -1)); in TEST()
409 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 0, UINT32_MAX, 0)); in TEST()
412 EXPECT_EQ(SP32(1, 0), getSum32(1, 0, 0, 0)); in TEST()
413 EXPECT_EQ(SP32(8, -3), getSum32(8, -3, 0, 0)); in TEST()
414 EXPECT_EQ(SP32(UINT32_MAX, 0), getSum32(UINT32_MAX, 0, 0, 0)); in TEST()
415 EXPECT_EQ(SP32(3, 0), getSum32(2, 0, 1, 0)); in TEST()
416 EXPECT_EQ(SP32(67, 0), getSum32(60, 0, 7, 0)); in TEST()
417 EXPECT_EQ(SP32(3, 0), getSum32(1, 1, 1, 0)); in TEST()
418 EXPECT_EQ(SP32(4, 0), getSum32(1, 1, 2, 0)); in TEST()
419 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(1, 0, 1, 32)); in TEST()
420 EXPECT_EQ(SP32(UINT32_C(1) << 31, -31), getSum32(1, 0, 1, -32)); in TEST()
421 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), getSum32(1, 1, 1, 32)); in TEST()
422 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -32), getSum32(1, -1, 1, -32)); in TEST()
423 EXPECT_EQ(SP32(UINT32_C(1) << 31, 1), getSum32(UINT32_MAX, 0, 1, 0)); in TEST()
426 EXPECT_EQ(SP64(1, 0), getSum64(0, 0, 1, 0)); in TEST()
427 EXPECT_EQ(SP64(8, -3), getSum64(0, 0, 8, -3)); in TEST()
428 EXPECT_EQ(SP64(UINT64_MAX, 0), getSum64(0, 0, UINT64_MAX, 0)); in TEST()
431 EXPECT_EQ(SP64(2, 0), getSum64(1, 0, 1, 0)); in TEST()
432 EXPECT_EQ(SP64(3, 0), getSum64(1, 0, 2, 0)); in TEST()
433 EXPECT_EQ(SP64(67, 0), getSum64(7, 0, 60, 0)); in TEST()
436 EXPECT_EQ(SP64(3, 0), getSum64(1, 0, 1, 1)); in TEST()
437 EXPECT_EQ(SP64(4, 0), getSum64(2, 0, 1, 1)); in TEST()
440 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(1, 64, 1, 0)); in TEST()
441 EXPECT_EQ(SP64(UINT64_C(1) << 63, -63), getSum64(1, -64, 1, 0)); in TEST()
444 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, 1), getSum64(1, 64, 1, 1)); in TEST()
445 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, -64), getSum64(1, -64, 1, -1)); in TEST()
448 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(1, 0, UINT64_MAX, 0)); in TEST()
451 EXPECT_EQ(SP64(1, 0), getSum64(1, 0, 0, 0)); in TEST()
452 EXPECT_EQ(SP64(8, -3), getSum64(8, -3, 0, 0)); in TEST()
453 EXPECT_EQ(SP64(UINT64_MAX, 0), getSum64(UINT64_MAX, 0, 0, 0)); in TEST()
454 EXPECT_EQ(SP64(3, 0), getSum64(2, 0, 1, 0)); in TEST()
455 EXPECT_EQ(SP64(67, 0), getSum64(60, 0, 7, 0)); in TEST()
456 EXPECT_EQ(SP64(3, 0), getSum64(1, 1, 1, 0)); in TEST()
457 EXPECT_EQ(SP64(4, 0), getSum64(1, 1, 2, 0)); in TEST()
458 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(1, 0, 1, 64)); in TEST()
459 EXPECT_EQ(SP64(UINT64_C(1) << 63, -63), getSum64(1, 0, 1, -64)); in TEST()
460 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, 1), getSum64(1, 1, 1, 64)); in TEST()
461 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, -64), getSum64(1, -1, 1, -64)); in TEST()
462 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(UINT64_MAX, 0, 1, 0)); in TEST()
467 EXPECT_EQ(SP32(0, 0), getDifference32(1, 0, 1, 0)); in TEST()
468 EXPECT_EQ(SP32(1, 0), getDifference32(2, 0, 1, 0)); in TEST()
469 EXPECT_EQ(SP32(53, 0), getDifference32(60, 0, 7, 0)); in TEST()
472 EXPECT_EQ(SP32(0, 0), getDifference32(2, 0, 1, 1)); in TEST()
475 EXPECT_EQ(SP32(1, 0), getDifference32(1, 0, 0, 0)); in TEST()
476 EXPECT_EQ(SP32(8, -3), getDifference32(8, -3, 0, 0)); in TEST()
477 EXPECT_EQ(SP32(UINT32_MAX, 0), getDifference32(UINT32_MAX, 0, 0, 0)); in TEST()
480 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, 1), in TEST()
482 EXPECT_EQ(SP32((UINT32_C(1) << 31) + 1, -31), in TEST()
486 EXPECT_EQ(SP32(UINT32_MAX, 0), getDifference32(1, 32, 1, 0)); in TEST()
487 EXPECT_EQ(SP32(UINT32_MAX, -32), getDifference32(1, 0, 1, -32)); in TEST()
490 EXPECT_EQ(SP32(0, 0), getDifference32(0, 0, 1, 0)); in TEST()
491 EXPECT_EQ(SP32(0, 0), getDifference32(0, 0, 8, -3)); in TEST()
492 EXPECT_EQ(SP32(0, 0), getDifference32(0, 0, UINT32_MAX, 0)); in TEST()
493 EXPECT_EQ(SP32(0, 0), getDifference32(7, 0, 60, 0)); in TEST()
494 EXPECT_EQ(SP32(0, 0), getDifference32(1, 0, 1, 1)); in TEST()
495 EXPECT_EQ(SP32(0, 0), getDifference32(1, -32, 1, 0)); in TEST()
496 EXPECT_EQ(SP32(0, 0), getDifference32(1, -32, 1, -1)); in TEST()
499 EXPECT_EQ(SP32(UINT32_C(1) << 26, -31), in TEST()
503 EXPECT_EQ(SP64(0, 0), getDifference64(1, 0, 1, 0)); in TEST()
504 EXPECT_EQ(SP64(1, 0), getDifference64(2, 0, 1, 0)); in TEST()
505 EXPECT_EQ(SP64(53, 0), getDifference64(60, 0, 7, 0)); in TEST()
508 EXPECT_EQ(SP64(0, 0), getDifference64(2, 0, 1, 1)); in TEST()
511 EXPECT_EQ(SP64(1, 0), getDifference64(1, 0, 0, 0)); in TEST()
512 EXPECT_EQ(SP64(8, -3), getDifference64(8, -3, 0, 0)); in TEST()
513 EXPECT_EQ(SP64(UINT64_MAX, 0), getDifference64(UINT64_MAX, 0, 0, 0)); in TEST()
516 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, 1), in TEST()
518 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, -63), in TEST()
522 EXPECT_EQ(SP64(UINT64_MAX, 0), getDifference64(1, 64, 1, 0)); in TEST()
523 EXPECT_EQ(SP64(UINT64_MAX, -64), getDifference64(1, 0, 1, -64)); in TEST()
526 EXPECT_EQ(SP64(0, 0), getDifference64(0, 0, 1, 0)); in TEST()
527 EXPECT_EQ(SP64(0, 0), getDifference64(0, 0, 8, -3)); in TEST()
528 EXPECT_EQ(SP64(0, 0), getDifference64(0, 0, UINT64_MAX, 0)); in TEST()
529 EXPECT_EQ(SP64(0, 0), getDifference64(7, 0, 60, 0)); in TEST()
530 EXPECT_EQ(SP64(0, 0), getDifference64(1, 0, 1, 1)); in TEST()
531 EXPECT_EQ(SP64(0, 0), getDifference64(1, -64, 1, 0)); in TEST()
532 EXPECT_EQ(SP64(0, 0), getDifference64(1, -64, 1, -1)); in TEST()
536 EXPECT_EQ(ScaledNumber<uint32_t>(10, 0), in TEST()
538 EXPECT_EQ(ScaledNumber<uint32_t>(6, 0), in TEST()
540 EXPECT_EQ(ScaledNumber<uint32_t>(2, 3), in TEST()
542 EXPECT_EQ(ScaledNumber<uint32_t>(1, 2), in TEST()
544 EXPECT_EQ(ScaledNumber<uint32_t>(1, 2), ScaledNumber<uint32_t>(1, 3) >> 1); in TEST()
545 EXPECT_EQ(ScaledNumber<uint32_t>(1, 4), ScaledNumber<uint32_t>(1, 3) << 1); in TEST()
547 EXPECT_EQ(ScaledNumber<uint64_t>(10, 0), in TEST()
549 EXPECT_EQ(ScaledNumber<uint64_t>(6, 0), in TEST()
551 EXPECT_EQ(ScaledNumber<uint64_t>(2, 3), in TEST()
553 EXPECT_EQ(ScaledNumber<uint64_t>(1, 2), in TEST()
555 EXPECT_EQ(ScaledNumber<uint64_t>(1, 2), ScaledNumber<uint64_t>(1, 3) >> 1); in TEST()
556 EXPECT_EQ(ScaledNumber<uint64_t>(1, 4), ScaledNumber<uint64_t>(1, 3) << 1); in TEST()
561 EXPECT_EQ(1u, (n * n).toInt<uint32_t>()); in TEST()