Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: net/quic/quic_utils.cc

Issue 1160203003: net: Remove the remaining use of GG_(U)INTn_C macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stdint.h Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_time.cc ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_utils.cc
diff --git a/net/quic/quic_utils.cc b/net/quic/quic_utils.cc
index 9f8b99371d6067950b4f5812aba2fb33ebb49806..3d59b07f8a44e7bc16b2281695d8d232d61bcce7 100644
--- a/net/quic/quic_utils.cc
+++ b/net/quic/quic_utils.cc
@@ -5,6 +5,7 @@
#include "net/quic/quic_utils.h"
#include <ctype.h>
+#include <stdint.h>
#include <algorithm>
#include <vector>
@@ -12,7 +13,6 @@
#include "base/basictypes.h"
#include "base/containers/adapters.h"
#include "base/logging.h"
-#include "base/port.h"
#include "base/strings/stringprintf.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
@@ -25,8 +25,8 @@ namespace net {
// static
uint64 QuicUtils::FNV1a_64_Hash(const char* data, int len) {
- static const uint64 kOffset = GG_UINT64_C(14695981039346656037);
- static const uint64 kPrime = GG_UINT64_C(1099511628211);
+ static const uint64 kOffset = UINT64_C(14695981039346656037);
+ static const uint64 kPrime = UINT64_C(1099511628211);
const uint8* octets = reinterpret_cast<const uint8*>(data);
@@ -53,8 +53,8 @@ uint128 QuicUtils::FNV1a_128_Hash_Two(const char* data1,
// The two constants are defined as part of the hash algorithm.
// see http://www.isthe.com/chongo/tech/comp/fnv/
// 144066263297769815596495629667062367629
- const uint128 kOffset(GG_UINT64_C(7809847782465536322),
- GG_UINT64_C(7113472399480571277));
+ const uint128 kOffset(UINT64_C(7809847782465536322),
+ UINT64_C(7113472399480571277));
uint128 hash = IncrementalHash(kOffset, data1, len1);
if (data2 == nullptr) {
« no previous file with comments | « net/quic/quic_time.cc ('k') | net/test/ct_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698