mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-04 11:44:08 +02:00
Implement 128-bit constant mul in bigint
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user