YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/src/yb/gutil/int128.cc
Line
Count
Source (jump to first uncovered line)
1
// Copyright 2004 Google Inc.
2
// All Rights Reserved.
3
//
4
// The following only applies to changes made to this file as part of YugaByte development.
5
//
6
// Portions Copyright (c) YugaByte, Inc.
7
//
8
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
9
// in compliance with the License.  You may obtain a copy of the License at
10
//
11
// http://www.apache.org/licenses/LICENSE-2.0
12
//
13
// Unless required by applicable law or agreed to in writing, software distributed under the License
14
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
15
// or implied.  See the License for the specific language governing permissions and limitations
16
// under the License.
17
//
18
//
19
20
#include <iostream>
21
using std::cout;
22
using std::endl;
23
#include "yb/gutil/int128.h"
24
#include "yb/gutil/integral_types.h"
25
26
const uint128_pod kuint128max = {
27
    static_cast<uint64>(GG_LONGLONG(0xFFFFFFFFFFFFFFFF)),
28
    static_cast<uint64>(GG_LONGLONG(0xFFFFFFFFFFFFFFFF))
29
};
30
31
0
std::ostream& operator<<(std::ostream& o, const uint128& b) {
32
0
  return (o << b.hi_ << "::" << b.lo_);
33
0
}