summaryrefslogtreecommitdiffstats
path: root/net/base/int128.cc
blob: 0657ad984944f78746290ba8390ab91ddc3f3379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "net/base/int128.h"

#include <ostream>

const uint128_pod kuint128max = {static_cast<uint64_t>(0xFFFFFFFFFFFFFFFFULL),
                                 static_cast<uint64_t>(0xFFFFFFFFFFFFFFFFULL)};

std::ostream& operator<<(std::ostream& o, const uint128& b) {
  return (o << b.hi_ << "::" << b.lo_);
}