[email protected] | 165e075 | 2012-11-16 07:49:44 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 165e075 | 2012-11-16 07:49:44 | [diff] [blame] | 5 | #include "net/base/int128.h" |
6 | |||||
thakis | 6baf438 | 2015-12-10 22:36:27 | [diff] [blame] | 7 | #include <ostream> |
avi | bf0746c | 2015-12-09 19:53:14 | [diff] [blame] | 8 | |
altimin | 25cfca5 | 2016-05-26 20:06:46 | [diff] [blame] | 9 | namespace net { |
10 | |||||
avi | bf0746c | 2015-12-09 19:53:14 | [diff] [blame] | 11 | const uint128_pod kuint128max = {static_cast<uint64_t>(0xFFFFFFFFFFFFFFFFULL), |
12 | static_cast<uint64_t>(0xFFFFFFFFFFFFFFFFULL)}; | ||||
[email protected] | 165e075 | 2012-11-16 07:49:44 | [diff] [blame] | 13 | |
14 | std::ostream& operator<<(std::ostream& o, const uint128& b) { | ||||
15 | return (o << b.hi_ << "::" << b.lo_); | ||||
16 | } | ||||
altimin | 25cfca5 | 2016-05-26 20:06:46 | [diff] [blame] | 17 | |
18 | } // namespace net |