Lines Matching refs:pair
693 for (const HighLowPair& pair : values) { in TEST() local
694 absl::int128 value = absl::MakeInt128(pair.high, pair.low); in TEST()
695 EXPECT_EQ(pair.low, absl::Int128Low64(value)); in TEST()
696 EXPECT_EQ(pair.high, absl::Int128High64(value)); in TEST()
742 for (const TestCase& pair : cases) { in TEST() local
743 SCOPED_TRACE(::testing::Message() << "pair.smaller = " << pair.smaller in TEST()
744 << "; pair.larger = " << pair.larger); in TEST()
746 EXPECT_TRUE(pair.smaller == pair.smaller); // NOLINT(readability/check) in TEST()
747 EXPECT_TRUE(pair.larger == pair.larger); // NOLINT(readability/check) in TEST()
748 EXPECT_FALSE(pair.smaller == pair.larger); // NOLINT(readability/check) in TEST()
750 EXPECT_TRUE(pair.smaller != pair.larger); // NOLINT(readability/check) in TEST()
751 EXPECT_FALSE(pair.smaller != pair.smaller); // NOLINT(readability/check) in TEST()
752 EXPECT_FALSE(pair.larger != pair.larger); // NOLINT(readability/check) in TEST()
754 EXPECT_TRUE(pair.smaller < pair.larger); // NOLINT(readability/check) in TEST()
755 EXPECT_FALSE(pair.larger < pair.smaller); // NOLINT(readability/check) in TEST()
757 EXPECT_TRUE(pair.larger > pair.smaller); // NOLINT(readability/check) in TEST()
758 EXPECT_FALSE(pair.smaller > pair.larger); // NOLINT(readability/check) in TEST()
760 EXPECT_TRUE(pair.smaller <= pair.larger); // NOLINT(readability/check) in TEST()
761 EXPECT_FALSE(pair.larger <= pair.smaller); // NOLINT(readability/check) in TEST()
762 EXPECT_TRUE(pair.smaller <= pair.smaller); // NOLINT(readability/check) in TEST()
763 EXPECT_TRUE(pair.larger <= pair.larger); // NOLINT(readability/check) in TEST()
765 EXPECT_TRUE(pair.larger >= pair.smaller); // NOLINT(readability/check) in TEST()
766 EXPECT_FALSE(pair.smaller >= pair.larger); // NOLINT(readability/check) in TEST()
767 EXPECT_TRUE(pair.smaller >= pair.smaller); // NOLINT(readability/check) in TEST()
768 EXPECT_TRUE(pair.larger >= pair.larger); // NOLINT(readability/check) in TEST()
798 std::pair<int64_t, int64_t> cases[]{ in TEST()
809 for (const auto& pair : cases) { in TEST() local
811 << "pair = {" << pair.first << ", " << pair.second << '}'); in TEST()
813 EXPECT_EQ(absl::int128(pair.first + pair.second), in TEST()
814 absl::int128(pair.first) + absl::int128(pair.second)); in TEST()
815 EXPECT_EQ(absl::int128(pair.second + pair.first), in TEST()
816 absl::int128(pair.second) += absl::int128(pair.first)); in TEST()
818 EXPECT_EQ(absl::int128(pair.first - pair.second), in TEST()
819 absl::int128(pair.first) - absl::int128(pair.second)); in TEST()
820 EXPECT_EQ(absl::int128(pair.second - pair.first), in TEST()
821 absl::int128(pair.second) -= absl::int128(pair.first)); in TEST()
824 absl::MakeInt128(pair.second + pair.first, 0), in TEST()
825 absl::MakeInt128(pair.second, 0) + absl::MakeInt128(pair.first, 0)); in TEST()
827 absl::MakeInt128(pair.first + pair.second, 0), in TEST()
828 absl::MakeInt128(pair.first, 0) += absl::MakeInt128(pair.second, 0)); in TEST()
831 absl::MakeInt128(pair.second - pair.first, 0), in TEST()
832 absl::MakeInt128(pair.second, 0) - absl::MakeInt128(pair.first, 0)); in TEST()
834 absl::MakeInt128(pair.first - pair.second, 0), in TEST()
835 absl::MakeInt128(pair.first, 0) -= absl::MakeInt128(pair.second, 0)); in TEST()
878 std::pair<int64_t, int64_t> small_values[] = { in TEST()
884 for (const std::pair<int64_t, int64_t>& pair : small_values) { in TEST() local
886 << "pair = {" << pair.first << ", " << pair.second << '}'); in TEST()
888 EXPECT_EQ(absl::int128(pair.first * pair.second), in TEST()
889 absl::int128(pair.first) * absl::int128(pair.second)); in TEST()
890 EXPECT_EQ(absl::int128(pair.first * pair.second), in TEST()
891 absl::int128(pair.first) *= absl::int128(pair.second)); in TEST()
893 EXPECT_EQ(absl::MakeInt128(pair.first * pair.second, 0), in TEST()
894 absl::MakeInt128(pair.first, 0) * absl::int128(pair.second)); in TEST()
895 EXPECT_EQ(absl::MakeInt128(pair.first * pair.second, 0), in TEST()
896 absl::MakeInt128(pair.first, 0) *= absl::int128(pair.second)); in TEST()
901 std::pair<int64_t, int64_t> small_values2[] = { in TEST()
906 for (const std::pair<int64_t, int64_t>& pair : small_values2) { in TEST() local
908 << "pair = {" << pair.first << ", " << pair.second << '}'); in TEST()
910 absl::int128 a = absl::int128(pair.first << 32); in TEST()
911 absl::int128 b = absl::int128(pair.second << 32); in TEST()
912 absl::int128 c = absl::MakeInt128(pair.first * pair.second, 0); in TEST()
974 std::pair<int64_t, int64_t> small_pairs[] = { in TEST()
980 for (const std::pair<int64_t, int64_t>& pair : small_pairs) { in TEST() local
982 << "pair = {" << pair.first << ", " << pair.second << '}'); in TEST()
984 absl::int128 dividend = pair.first; in TEST()
985 absl::int128 divisor = pair.second; in TEST()
986 int64_t quotient = pair.first / pair.second; in TEST()
987 int64_t remainder = pair.first % pair.second; in TEST()
1105 std::pair<int64_t, int64_t> pairs64[]{ in TEST()
1115 for (const std::pair<int64_t, int64_t>& pair : pairs64) { in TEST() local
1117 << "pair = {" << pair.first << ", " << pair.second << '}'); in TEST()
1119 EXPECT_EQ(absl::MakeInt128(~pair.first, ~pair.second), in TEST()
1120 ~absl::MakeInt128(pair.first, pair.second)); in TEST()
1122 EXPECT_EQ(absl::int128(pair.first & pair.second), in TEST()
1123 absl::int128(pair.first) & absl::int128(pair.second)); in TEST()
1124 EXPECT_EQ(absl::int128(pair.first | pair.second), in TEST()
1125 absl::int128(pair.first) | absl::int128(pair.second)); in TEST()
1126 EXPECT_EQ(absl::int128(pair.first ^ pair.second), in TEST()
1127 absl::int128(pair.first) ^ absl::int128(pair.second)); in TEST()
1129 EXPECT_EQ(absl::int128(pair.first & pair.second), in TEST()
1130 absl::int128(pair.first) &= absl::int128(pair.second)); in TEST()
1131 EXPECT_EQ(absl::int128(pair.first | pair.second), in TEST()
1132 absl::int128(pair.first) |= absl::int128(pair.second)); in TEST()
1133 EXPECT_EQ(absl::int128(pair.first ^ pair.second), in TEST()
1134 absl::int128(pair.first) ^= absl::int128(pair.second)); in TEST()
1137 absl::MakeInt128(pair.first & pair.second, 0), in TEST()
1138 absl::MakeInt128(pair.first, 0) & absl::MakeInt128(pair.second, 0)); in TEST()
1140 absl::MakeInt128(pair.first | pair.second, 0), in TEST()
1141 absl::MakeInt128(pair.first, 0) | absl::MakeInt128(pair.second, 0)); in TEST()
1143 absl::MakeInt128(pair.first ^ pair.second, 0), in TEST()
1144 absl::MakeInt128(pair.first, 0) ^ absl::MakeInt128(pair.second, 0)); in TEST()
1147 absl::MakeInt128(pair.first & pair.second, 0), in TEST()
1148 absl::MakeInt128(pair.first, 0) &= absl::MakeInt128(pair.second, 0)); in TEST()
1150 absl::MakeInt128(pair.first | pair.second, 0), in TEST()
1151 absl::MakeInt128(pair.first, 0) |= absl::MakeInt128(pair.second, 0)); in TEST()
1153 absl::MakeInt128(pair.first ^ pair.second, 0), in TEST()
1154 absl::MakeInt128(pair.first, 0) ^= absl::MakeInt128(pair.second, 0)); in TEST()