Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Int96.h
Go to the documentation of this file.
1// Copyright 2023 Google LLC
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4#ifndef Int96_DEFINED
5#define Int96_DEFINED
6
7#include <cstdint>
8
9namespace bentleyottmann {
10struct Int96 {
11 int64_t hi;
12 uint32_t lo;
13
14 static Int96 Make(int32_t a);
15 static Int96 Make(int64_t a);
16};
17bool operator== (const Int96& a, const Int96& b);
18bool operator< (const Int96& a, const Int96& b);
19Int96 operator+ (const Int96& a, const Int96& b);
20Int96 multiply(int64_t a, int32_t b);
21Int96 multiply(int32_t a, int64_t b);
22
23
24} // namespace bentleyottmann
25#endif // Int96_DEFINED
static bool b
struct MyStruct a[10]
bool operator<(const Int96 &a, const Int96 &b)
Definition Int96.cpp:23
Int96 operator+(const Int96 &a, const Int96 &b)
Definition Int96.cpp:27
Int96 multiply(int64_t a, int32_t b)
Definition Int96.cpp:41
bool operator==(const Int96 &a, const Int96 &b)
Definition Int96.cpp:19
static Int96 Make(int32_t a)
Definition Int96.cpp:11