Lines Matching refs:UINT64_C
53 EXPECT_EQ(getRounded64(UINT32_MAX, 0, true), SP64(UINT64_C(1) << 32, 0)); in TEST()
55 EXPECT_EQ(getRounded64(UINT64_MAX, 0, true), SP64(UINT64_C(1) << 63, 1)); in TEST()
124 EXPECT_EQ(SP64(UINT64_C(1) << 63, 64), in TEST()
125 getProduct64(UINT64_C(10376293541461622786), in TEST()
126 UINT64_C(16397105843297379211))); in TEST()
129 EXPECT_EQ(SP64(UINT64_C(9223372036854775810), 64), in TEST()
130 getProduct64(UINT64_C(18446744073709551556), in TEST()
131 UINT64_C(9223372036854775840))); 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()
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()
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()
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()
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()
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()
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()
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()
366 MATCH_SCALES(uint64_t, UINT64_C(1) << 63, 1, 9, 0, UINT64_C(1) << 63, 4, 1); in TEST()
367 MATCH_SCALES(uint64_t, UINT64_C(1) << 63, 2, 9, 0, UINT64_C(1) << 63, 2, 2); in TEST()
368 MATCH_SCALES(uint64_t, UINT64_C(1) << 63, 3, 9, 0, UINT64_C(1) << 63, 1, 3); in TEST()
369 MATCH_SCALES(uint64_t, UINT64_C(1) << 63, 4, 9, 0, UINT64_C(1) << 63, 0, 4); in TEST()
370 MATCH_SCALES(uint64_t, UINT64_C(1) << 62, 4, 9, 0, UINT64_C(1) << 63, 1, 3); in TEST()
371 MATCH_SCALES(uint64_t, UINT64_C(1) << 61, 4, 9, 0, UINT64_C(1) << 63, 2, 2); in TEST()
372 MATCH_SCALES(uint64_t, UINT64_C(1) << 60, 4, 9, 0, UINT64_C(1) << 63, 4, 1); in TEST()
373 MATCH_SCALES(uint64_t, UINT64_C(1) << 59, 4, 9, 0, UINT64_C(1) << 63, 9, 0); in TEST()
375 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 63, 1, 4, UINT64_C(1) << 63, 1); in TEST()
376 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 63, 2, 2, UINT64_C(1) << 63, 2); in TEST()
377 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 63, 3, 1, UINT64_C(1) << 63, 3); in TEST()
378 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 63, 4, 0, UINT64_C(1) << 63, 4); in TEST()
379 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 62, 4, 1, UINT64_C(1) << 63, 3); in TEST()
380 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 61, 4, 2, UINT64_C(1) << 63, 2); in TEST()
381 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 60, 4, 4, UINT64_C(1) << 63, 1); in TEST()
382 MATCH_SCALES(uint64_t, 9, 0, UINT64_C(1) << 59, 4, 9, UINT64_C(1) << 63, 0); 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()
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()
516 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, 1), in TEST()
517 getDifference64((UINT64_C(1) << 63) + 1, 1, 1, 0)); in TEST()
518 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, -63), in TEST()
519 getDifference64((UINT64_C(1) << 63) + 1, -63, 1, -64)); in TEST()