Index: net/base/int128_unittest.cc |
diff --git a/net/base/int128_unittest.cc b/net/base/int128_unittest.cc |
index 78790e765fd2af201902d8d9c0169edd079c43a1..957038bffd3b8c047e1095d4752c092d67fac05d 100644 |
--- a/net/base/int128_unittest.cc |
+++ b/net/base/int128_unittest.cc |
@@ -230,24 +230,18 @@ TEST(Int128, Multiply) { |
} |
// Verified with dc. |
- a = uint128(GG_ULONGLONG(0xffffeeeeddddcccc), |
- GG_ULONGLONG(0xbbbbaaaa99998888)); |
- b = uint128(GG_ULONGLONG(0x7777666655554444), |
- GG_ULONGLONG(0x3333222211110000)); |
+ a = uint128(0xffffeeeeddddccccULL, 0xbbbbaaaa99998888ULL); |
+ b = uint128(0x7777666655554444ULL, 0x3333222211110000ULL); |
c = a * b; |
- EXPECT_EQ(uint128(GG_ULONGLONG(0x530EDA741C71D4C3), |
- GG_ULONGLONG(0xBF25975319080000)), c); |
+ EXPECT_EQ(uint128(0x530EDA741C71D4C3ULL, 0xBF25975319080000ULL), c); |
EXPECT_EQ(0, c - b * a); |
EXPECT_EQ(a*a - b*b, (a+b) * (a-b)); |
// Verified with dc. |
- a = uint128(GG_ULONGLONG(0x0123456789abcdef), |
- GG_ULONGLONG(0xfedcba9876543210)); |
- b = uint128(GG_ULONGLONG(0x02468ace13579bdf), |
- GG_ULONGLONG(0xfdb97531eca86420)); |
+ a = uint128(0x0123456789abcdefULL, 0xfedcba9876543210ULL); |
+ b = uint128(0x02468ace13579bdfULL, 0xfdb97531eca86420ULL); |
c = a * b; |
- EXPECT_EQ(uint128(GG_ULONGLONG(0x97a87f4f261ba3f2), |
- GG_ULONGLONG(0x342d0bbf48948200)), c); |
+ EXPECT_EQ(uint128(0x97a87f4f261ba3f2ULL, 0x342d0bbf48948200ULL), c); |
EXPECT_EQ(0, c - b * a); |
EXPECT_EQ(a*a - b*b, (a+b) * (a-b)); |
} |