OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <iostream> | |
6 #include "base/basictypes.h" | |
7 #include "net/base/int128.h" | 5 #include "net/base/int128.h" |
8 | 6 |
9 const uint128_pod kuint128max = { | 7 #include <iostream> |
10 static_cast<uint64>(0xFFFFFFFFFFFFFFFFULL), | 8 |
11 static_cast<uint64>(0xFFFFFFFFFFFFFFFFULL) | 9 const uint128_pod kuint128max = {static_cast<uint64_t>(0xFFFFFFFFFFFFFFFFULL), |
12 }; | 10 static_cast<uint64_t>(0xFFFFFFFFFFFFFFFFULL)}; |
13 | 11 |
14 std::ostream& operator<<(std::ostream& o, const uint128& b) { | 12 std::ostream& operator<<(std::ostream& o, const uint128& b) { |
15 return (o << b.hi_ << "::" << b.lo_); | 13 return (o << b.hi_ << "::" << b.lo_); |
16 } | 14 } |
OLD | NEW |