• Home
  • Raw
  • Download

Lines Matching refs:SP64

39 typedef ScaledPair<uint64_t> SP64;  typedef
48 EXPECT_EQ(getRounded64(0, 0, false), SP64(0, 0)); in TEST()
49 EXPECT_EQ(getRounded64(0, 0, true), SP64(1, 0)); in TEST()
50 EXPECT_EQ(getRounded64(20, 21, true), SP64(21, 21)); in TEST()
51 EXPECT_EQ(getRounded64(UINT32_MAX, 0, false), SP64(UINT32_MAX, 0)); in TEST()
52 EXPECT_EQ(getRounded64(UINT32_MAX, 0, true), SP64(UINT64_C(1) << 32, 0)); in TEST()
53 EXPECT_EQ(getRounded64(UINT64_MAX, 0, false), SP64(UINT64_MAX, 0)); in TEST()
54 EXPECT_EQ(getRounded64(UINT64_MAX, 0, true), SP64(UINT64_C(1) << 63, 1)); in TEST()
69 EXPECT_EQ(getAdjusted64(0), SP64(0, 0)); in TEST()
70 EXPECT_EQ(getAdjusted64(0, 5), SP64(0, 5)); in TEST()
71 EXPECT_EQ(getAdjusted64(UINT32_MAX), SP64(UINT32_MAX, 0)); in TEST()
72 EXPECT_EQ(getAdjusted64(Max32In64 << 1), SP64(Max32In64 << 1, 0)); in TEST()
73 EXPECT_EQ(getAdjusted64(Max32In64 << 1, 1), SP64(Max32In64 << 1, 1)); in TEST()
74 EXPECT_EQ(getAdjusted64(Max32In64 << 31), SP64(Max32In64 << 31, 0)); in TEST()
75 EXPECT_EQ(getAdjusted64(Max32In64 << 32), SP64(Max32In64 << 32, 0)); in TEST()
76 EXPECT_EQ(getAdjusted64(Max32In64 + 1), SP64(Max32In64 + 1, 0)); in TEST()
77 EXPECT_EQ(getAdjusted64(UINT64_MAX), SP64(UINT64_MAX, 0)); in TEST()
123 EXPECT_EQ(SP64(UINT64_C(1) << 63, 64), in TEST()
128 EXPECT_EQ(SP64(UINT64_C(9223372036854775810), 64), in TEST()
169 EXPECT_EQ(SP64(0, 0), getQuotient64(0, 0)); in TEST()
170 EXPECT_EQ(SP64(0, 0), getQuotient64(0, 1)); in TEST()
171 EXPECT_EQ(SP64(0, 0), getQuotient64(0, 73)); in TEST()
172 EXPECT_EQ(SP64(UINT64_MAX, MaxScale), getQuotient64(1, 0)); in TEST()
173 EXPECT_EQ(SP64(UINT64_MAX, MaxScale), getQuotient64(6, 0)); in TEST()
176 EXPECT_EQ(SP64(1, 0), getQuotient64(1, 1)); in TEST()
177 EXPECT_EQ(SP64(2, 0), getQuotient64(2, 1)); in TEST()
178 EXPECT_EQ(SP64(4, -4), getQuotient64(4, 16)); in TEST()
179 EXPECT_EQ(SP64(7, 0), getQuotient64(7, 1)); in TEST()
180 EXPECT_EQ(SP64(7, -1), getQuotient64(7, 2)); in TEST()
181 EXPECT_EQ(SP64(7, -4), getQuotient64(7, 16)); in TEST()
184 EXPECT_EQ(SP64(UINT64_C(3) << 60, -60), getQuotient64(9, 3)); in TEST()
185 EXPECT_EQ(SP64(UINT64_C(9) << 58, -58), getQuotient64(63, 7)); in TEST()
188 EXPECT_EQ(SP64(0xaaaaaaaaaaaaaaab, -65), getQuotient64(1, 3)); in TEST()
189 EXPECT_EQ(SP64(0xd555555555555555, -63), getQuotient64(5, 3)); in TEST()
427 EXPECT_EQ(SP64(1, 0), getSum64(0, 0, 1, 0)); in TEST()
428 EXPECT_EQ(SP64(8, -3), getSum64(0, 0, 8, -3)); in TEST()
429 EXPECT_EQ(SP64(UINT64_MAX, 0), getSum64(0, 0, UINT64_MAX, 0)); in TEST()
432 EXPECT_EQ(SP64(2, 0), getSum64(1, 0, 1, 0)); in TEST()
433 EXPECT_EQ(SP64(3, 0), getSum64(1, 0, 2, 0)); in TEST()
434 EXPECT_EQ(SP64(67, 0), getSum64(7, 0, 60, 0)); in TEST()
437 EXPECT_EQ(SP64(3, 0), getSum64(1, 0, 1, 1)); in TEST()
438 EXPECT_EQ(SP64(4, 0), getSum64(2, 0, 1, 1)); in TEST()
441 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(1, 64, 1, 0)); in TEST()
442 EXPECT_EQ(SP64(UINT64_C(1) << 63, -63), getSum64(1, -64, 1, 0)); in TEST()
445 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, 1), getSum64(1, 64, 1, 1)); in TEST()
446 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, -64), getSum64(1, -64, 1, -1)); in TEST()
449 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(1, 0, UINT64_MAX, 0)); in TEST()
452 EXPECT_EQ(SP64(1, 0), getSum64(1, 0, 0, 0)); in TEST()
453 EXPECT_EQ(SP64(8, -3), getSum64(8, -3, 0, 0)); in TEST()
454 EXPECT_EQ(SP64(UINT64_MAX, 0), getSum64(UINT64_MAX, 0, 0, 0)); in TEST()
455 EXPECT_EQ(SP64(3, 0), getSum64(2, 0, 1, 0)); in TEST()
456 EXPECT_EQ(SP64(67, 0), getSum64(60, 0, 7, 0)); in TEST()
457 EXPECT_EQ(SP64(3, 0), getSum64(1, 1, 1, 0)); in TEST()
458 EXPECT_EQ(SP64(4, 0), getSum64(1, 1, 2, 0)); in TEST()
459 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(1, 0, 1, 64)); in TEST()
460 EXPECT_EQ(SP64(UINT64_C(1) << 63, -63), getSum64(1, 0, 1, -64)); in TEST()
461 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, 1), getSum64(1, 1, 1, 64)); in TEST()
462 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, -64), getSum64(1, -1, 1, -64)); in TEST()
463 EXPECT_EQ(SP64(UINT64_C(1) << 63, 1), getSum64(UINT64_MAX, 0, 1, 0)); in TEST()
504 EXPECT_EQ(SP64(0, 0), getDifference64(1, 0, 1, 0)); in TEST()
505 EXPECT_EQ(SP64(1, 0), getDifference64(2, 0, 1, 0)); in TEST()
506 EXPECT_EQ(SP64(53, 0), getDifference64(60, 0, 7, 0)); in TEST()
509 EXPECT_EQ(SP64(0, 0), getDifference64(2, 0, 1, 1)); in TEST()
512 EXPECT_EQ(SP64(1, 0), getDifference64(1, 0, 0, 0)); in TEST()
513 EXPECT_EQ(SP64(8, -3), getDifference64(8, -3, 0, 0)); in TEST()
514 EXPECT_EQ(SP64(UINT64_MAX, 0), getDifference64(UINT64_MAX, 0, 0, 0)); in TEST()
517 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, 1), in TEST()
519 EXPECT_EQ(SP64((UINT64_C(1) << 63) + 1, -63), in TEST()
523 EXPECT_EQ(SP64(UINT64_MAX, 0), getDifference64(1, 64, 1, 0)); in TEST()
524 EXPECT_EQ(SP64(UINT64_MAX, -64), getDifference64(1, 0, 1, -64)); in TEST()
527 EXPECT_EQ(SP64(0, 0), getDifference64(0, 0, 1, 0)); in TEST()
528 EXPECT_EQ(SP64(0, 0), getDifference64(0, 0, 8, -3)); in TEST()
529 EXPECT_EQ(SP64(0, 0), getDifference64(0, 0, UINT64_MAX, 0)); in TEST()
530 EXPECT_EQ(SP64(0, 0), getDifference64(7, 0, 60, 0)); in TEST()
531 EXPECT_EQ(SP64(0, 0), getDifference64(1, 0, 1, 1)); in TEST()
532 EXPECT_EQ(SP64(0, 0), getDifference64(1, -64, 1, 0)); in TEST()
533 EXPECT_EQ(SP64(0, 0), getDifference64(1, -64, 1, -1)); in TEST()