uint128 14 net/base/int128.cc std::ostream& operator<<(std::ostream& o, const uint128& b) { uint128 15 net/base/int128.h class uint128 { uint128 17 net/base/int128.h uint128(); // Sets to 0, but don't trust on this behavior. uint128 18 net/base/int128.h uint128(uint64 top, uint64 bottom); uint128 19 net/base/int128.h uint128(int bottom); uint128 20 net/base/int128.h uint128(uint32 bottom); // Top 96 bits = 0 uint128 21 net/base/int128.h uint128(uint64 bottom); // hi_ = 0 uint128 22 net/base/int128.h uint128(const uint128 &val); uint128 23 net/base/int128.h uint128(const uint128_pod &val); uint128 27 net/base/int128.h uint128& operator=(const uint128& b); uint128 31 net/base/int128.h uint128& operator+=(const uint128& b); uint128 32 net/base/int128.h uint128& operator-=(const uint128& b); uint128 33 net/base/int128.h uint128& operator*=(const uint128& b); uint128 34 net/base/int128.h uint128 operator++(int); uint128 35 net/base/int128.h uint128 operator--(int); uint128 36 net/base/int128.h uint128& operator<<=(int); uint128 37 net/base/int128.h uint128& operator>>=(int); uint128 38 net/base/int128.h uint128& operator&=(const uint128& b); uint128 39 net/base/int128.h uint128& operator|=(const uint128& b); uint128 40 net/base/int128.h uint128& operator^=(const uint128& b); uint128 41 net/base/int128.h uint128& operator++(); uint128 42 net/base/int128.h uint128& operator--(); uint128 44 net/base/int128.h friend uint64 Uint128Low64(const uint128& v); uint128 45 net/base/int128.h friend uint64 Uint128High64(const uint128& v); uint128 49 net/base/int128.h const uint128& b); uint128 59 net/base/int128.h uint128(uint8); uint128 60 net/base/int128.h uint128(uint16); uint128 61 net/base/int128.h uint128(float v); uint128 62 net/base/int128.h uint128(double v); uint128 81 net/base/int128.h const uint128& b); uint128 86 net/base/int128.h inline uint64 Uint128Low64(const uint128& v) { return v.lo_; } uint128 87 net/base/int128.h inline uint64 Uint128High64(const uint128& v) { return v.hi_; } uint128 94 net/base/int128.h inline bool operator==(const uint128& lhs, const uint128& rhs) { uint128 98 net/base/int128.h inline bool operator!=(const uint128& lhs, const uint128& rhs) { uint128 101 net/base/int128.h inline uint128& uint128::operator=(const uint128& b) { uint128 107 net/base/int128.h inline uint128::uint128(): lo_(0), hi_(0) { } uint128 108 net/base/int128.h inline uint128::uint128(uint64 top, uint64 bottom) : lo_(bottom), hi_(top) { } uint128 109 net/base/int128.h inline uint128::uint128(const uint128 &v) : lo_(v.lo_), hi_(v.hi_) { } uint128 110 net/base/int128.h inline uint128::uint128(const uint128_pod &v) : lo_(v.lo), hi_(v.hi) { } uint128 111 net/base/int128.h inline uint128::uint128(uint64 bottom) : lo_(bottom), hi_(0) { } uint128 112 net/base/int128.h inline uint128::uint128(uint32 bottom) : lo_(bottom), hi_(0) { } uint128 113 net/base/int128.h inline uint128::uint128(int bottom) : lo_(bottom), hi_(0) { uint128 118 net/base/int128.h inline void uint128::Initialize(uint64 top, uint64 bottom) { uint128 126 net/base/int128.h inline bool operator op(const uint128& lhs, const uint128& rhs) { \ uint128 141 net/base/int128.h inline uint128 operator-(const uint128& val) { uint128 146 net/base/int128.h return uint128(hi_flip + 1, lo_add); uint128 148 net/base/int128.h return uint128(hi_flip, lo_add); uint128 151 net/base/int128.h inline bool operator!(const uint128& val) { uint128 157 net/base/int128.h inline uint128 operator~(const uint128& val) { uint128 158 net/base/int128.h return uint128(~Uint128High64(val), ~Uint128Low64(val)); uint128 162 net/base/int128.h inline uint128 operator op(const uint128& lhs, const uint128& rhs) { \ uint128 163 net/base/int128.h return uint128(Uint128High64(lhs) op Uint128High64(rhs), \ uint128 174 net/base/int128.h inline uint128& uint128::operator op(const uint128& other) { \ uint128 188 net/base/int128.h inline uint128 operator<<(const uint128& val, int amount) { uint128 197 net/base/int128.h return uint128(new_hi, new_lo); uint128 199 net/base/int128.h return uint128(Uint128Low64(val) << (amount - 64), 0); uint128 201 net/base/int128.h return uint128(0, 0); uint128 205 net/base/int128.h inline uint128 operator>>(const uint128& val, int amount) { uint128 214 net/base/int128.h return uint128(new_hi, new_lo); uint128 216 net/base/int128.h return uint128(0, Uint128High64(val) >> (amount - 64)); uint128 218 net/base/int128.h return uint128(0, 0); uint128 222 net/base/int128.h inline uint128& uint128::operator<<=(int amount) { uint128 239 net/base/int128.h inline uint128& uint128::operator>>=(int amount) { uint128 256 net/base/int128.h inline uint128 operator+(const uint128& lhs, const uint128& rhs) { uint128 257 net/base/int128.h return uint128(lhs) += rhs; uint128 260 net/base/int128.h inline uint128 operator-(const uint128& lhs, const uint128& rhs) { uint128 261 net/base/int128.h return uint128(lhs) -= rhs; uint128 264 net/base/int128.h inline uint128 operator*(const uint128& lhs, const uint128& rhs) { uint128 265 net/base/int128.h return uint128(lhs) *= rhs; uint128 268 net/base/int128.h inline uint128& uint128::operator+=(const uint128& b) { uint128 277 net/base/int128.h inline uint128& uint128::operator-=(const uint128& b) { uint128 285 net/base/int128.h inline uint128& uint128::operator*=(const uint128& b) { uint128 302 net/base/int128.h *this += uint128(a32 * b00) << 32; uint128 303 net/base/int128.h *this += uint128(a00 * b32) << 32; uint128 308 net/base/int128.h inline uint128 uint128::operator++(int) { uint128 309 net/base/int128.h uint128 tmp(*this); uint128 314 net/base/int128.h inline uint128 uint128::operator--(int) { uint128 315 net/base/int128.h uint128 tmp(*this); uint128 320 net/base/int128.h inline uint128& uint128::operator++() { uint128 325 net/base/int128.h inline uint128& uint128::operator--() { uint128 12 net/base/int128_unittest.cc uint128 zero(0); uint128 13 net/base/int128_unittest.cc uint128 one(1); uint128 14 net/base/int128_unittest.cc uint128 one_2arg(0, 1); uint128 15 net/base/int128_unittest.cc uint128 two(0, 2); uint128 16 net/base/int128_unittest.cc uint128 three(0, 3); uint128 17 net/base/int128_unittest.cc uint128 big(2000, 2); uint128 18 net/base/int128_unittest.cc uint128 big_minus_one(2000, 1); uint128 19 net/base/int128_unittest.cc uint128 bigger(2001, 1); uint128 20 net/base/int128_unittest.cc uint128 biggest(kuint128max); uint128 21 net/base/int128_unittest.cc uint128 high_low(1, 0); uint128 22 net/base/int128_unittest.cc uint128 low_high(0, kuint64max); uint128 76 net/base/int128_unittest.cc EXPECT_EQ(Uint128High64((uint128(1) << 64) - 1), 0u); uint128 77 net/base/int128_unittest.cc EXPECT_EQ(Uint128Low64((uint128(1) << 64) - 1), kuint64max); uint128 89 net/base/int128_unittest.cc uint128 test = zero; uint128 119 net/base/int128_unittest.cc uint128 from_pod(pod); uint128 123 net/base/int128_unittest.cc uint128 zero(0); uint128 125 net/base/int128_unittest.cc uint128 one(1); uint128 127 net/base/int128_unittest.cc uint128 two(2); uint128 129 net/base/int128_unittest.cc uint128 three(3); uint128 131 net/base/int128_unittest.cc uint128 big(1, 0); uint128 197 net/base/int128_unittest.cc uint128 v(1); uint128 203 net/base/int128_unittest.cc uint128 a, b, c; uint128 212 net/base/int128_unittest.cc a = uint128(0) - 1; uint128 213 net/base/int128_unittest.cc b = uint128(0) - 1; uint128 218 net/base/int128_unittest.cc c = uint128(0) - 1; uint128 225 net/base/int128_unittest.cc a = uint128(1) << i; uint128 226 net/base/int128_unittest.cc b = uint128(1) << j; uint128 228 net/base/int128_unittest.cc EXPECT_EQ(uint128(1) << (i+j), c); uint128 233 net/base/int128_unittest.cc a = uint128(GG_ULONGLONG(0xffffeeeeddddcccc), uint128 235 net/base/int128_unittest.cc b = uint128(GG_ULONGLONG(0x7777666655554444), uint128 238 net/base/int128_unittest.cc EXPECT_EQ(uint128(GG_ULONGLONG(0x530EDA741C71D4C3), uint128 244 net/base/int128_unittest.cc a = uint128(GG_ULONGLONG(0x0123456789abcdef), uint128 246 net/base/int128_unittest.cc b = uint128(GG_ULONGLONG(0x02468ace13579bdf), uint128 249 net/base/int128_unittest.cc EXPECT_EQ(uint128(GG_ULONGLONG(0x97a87f4f261ba3f2), uint128 256 net/base/int128_unittest.cc uint128 x1(1, 2); uint128 257 net/base/int128_unittest.cc uint128 x2(2, 4); uint128 261 net/base/int128_unittest.cc uint128 x3(1, 1ull << 63); uint128 262 net/base/int128_unittest.cc uint128 x4(3, 0); uint128 29 net/quic/crypto/null_decrypter.cc uint128 hash; uint128 54 net/quic/crypto/null_decrypter.cc uint128 hash; uint128 75 net/quic/crypto/null_decrypter.cc bool NullDecrypter::ReadHash(QuicDataReader* reader, uint128* hash) { uint128 88 net/quic/crypto/null_decrypter.cc uint128 NullDecrypter::ComputeHash(const string& data) const { uint128 89 net/quic/crypto/null_decrypter.cc uint128 correct_hash = QuicUtils::FNV1a_128_Hash(data.data(), data.length()); uint128 90 net/quic/crypto/null_decrypter.cc uint128 mask(GG_UINT64_C(0x0), GG_UINT64_C(0xffffffff)); uint128 39 net/quic/crypto/null_decrypter.h bool ReadHash(QuicDataReader* reader, uint128* hash); uint128 40 net/quic/crypto/null_decrypter.h uint128 ComputeHash(const std::string& data) const; uint128 31 net/quic/crypto/null_encrypter.cc uint128 hash = QuicUtils::FNV1a_128_Hash(buffer.data(), buffer.length()); uint128 50 net/quic/quic_data_reader.cc bool QuicDataReader::ReadUInt128(uint128* result) { uint128 61 net/quic/quic_data_reader.cc *result = uint128(high_hash, low_hash); uint128 60 net/quic/quic_data_reader.h bool ReadUInt128(uint128* result); uint128 41 net/quic/quic_utils.cc uint128 QuicUtils::FNV1a_128_Hash(const char* data, int len) { uint128 45 net/quic/quic_utils.cc const uint128 kPrime(16777216, 315); uint128 47 net/quic/quic_utils.cc const uint128 kOffset(GG_UINT64_C(7809847782465536322), uint128 52 net/quic/quic_utils.cc uint128 hash = kOffset; uint128 55 net/quic/quic_utils.cc hash = hash ^ uint128(0, octets[i]); uint128 110 net/quic/quic_utils.cc void QuicUtils::SerializeUint128(uint128 v, uint8* out) { uint128 119 net/quic/quic_utils.cc void QuicUtils::SerializeUint128Short(uint128 v, uint8* out) { uint128 29 net/quic/quic_utils.h static uint128 FNV1a_128_Hash(const char* data, int len); uint128 47 net/quic/quic_utils.h static void SerializeUint128(uint128 v, uint8* out); uint128 51 net/quic/quic_utils.h static void SerializeUint128Short(uint128 v, uint8* out);