Implement 128-bit constant mul in bigint

This commit is contained in:
Victor Zverovich committed 2022-04-03 07:24:18 -07:00
1 parent 02eb215f2f
commit 686de58886
3 files changed
+15 -10

No files matched your search

+3 -3
View File
@@ -101,9 +101,9 @@ TEST(bigint_test, multiply) {
const auto max128 = (fmt::detail::uint128_t(max64) << 64) | max64;
bigmax = max128;
// bigmax *= max128;
// EXPECT_EQ(fmt::to_string(bigmax),
// "fffffffffffffffffffffffffffffffe00000000000000000000000000000001");
bigmax *= max128;
EXPECT_EQ(fmt::to_string(bigmax),
"fffffffffffffffffffffffffffffffe00000000000000000000000000000001");
}
TEST(bigint_test, square) {