webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Macros | Functions
int128.h File Reference
#include <google/protobuf/stubs/common.h>
#include <iosfwd>

Go to the source code of this file.

Classes

class  google::protobuf::uint128
 
struct  google::protobuf::uint128_pod
 

Namespaces

 google
 
 google::protobuf
 

Macros

#define UINT128_CONSTEXPR
 
#define CMP128(op)
 
#define LOGIC128(op)
 
#define LOGICASSIGN128(op)
 

Functions

std::ostream & google::protobuf::operator<< (std::ostream &o, const uint128 &b)
 
uint64 google::protobuf::Uint128Low64 (const uint128 &v)
 
uint64 google::protobuf::Uint128High64 (const uint128 &v)
 
bool google::protobuf::operator== (const uint128 &lhs, const uint128 &rhs)
 
bool google::protobuf::operator!= (const uint128 &lhs, const uint128 &rhs)
 
uint128 google::protobuf::operator- (const uint128 &val)
 
bool google::protobuf::operator! (const uint128 &val)
 
uint128 google::protobuf::operator~ (const uint128 &val)
 
uint128 google::protobuf::operator<< (const uint128 &val, int amount)
 
uint128 google::protobuf::operator>> (const uint128 &val, int amount)
 
uint128 google::protobuf::operator+ (const uint128 &lhs, const uint128 &rhs)
 
uint128 google::protobuf::operator- (const uint128 &lhs, const uint128 &rhs)
 
uint128 google::protobuf::operator* (const uint128 &lhs, const uint128 &rhs)
 
uint128 google::protobuf::operator/ (const uint128 &lhs, const uint128 &rhs)
 
uint128 google::protobuf::operator% (const uint128 &lhs, const uint128 &rhs)
 

Macro Definition Documentation

◆ CMP128

#define CMP128 (   op)
Value:
inline bool operator op(const uint128& lhs, const uint128& rhs) { \
return (Uint128High64(lhs) == Uint128High64(rhs)) ? \
(Uint128Low64(lhs) op Uint128Low64(rhs)) : \
(Uint128High64(lhs) op Uint128High64(rhs)); \
}
uint64 Uint128High64(const uint128 &v)
Definition: int128.h:129
uint64 Uint128Low64(const uint128 &v)
Definition: int128.h:128

◆ LOGIC128

#define LOGIC128 (   op)
Value:
inline uint128 operator op(const uint128& lhs, const uint128& rhs) { \
return uint128(Uint128High64(lhs) op Uint128High64(rhs), \
Uint128Low64(lhs) op Uint128Low64(rhs)); \
}
uint64 Uint128High64(const uint128 &v)
Definition: int128.h:129
uint64 Uint128Low64(const uint128 &v)
Definition: int128.h:128

◆ LOGICASSIGN128

#define LOGICASSIGN128 (   op)
Value:
inline uint128& uint128::operator op(const uint128& other) { \
hi_ op other.hi_; \
lo_ op other.lo_; \
return *this; \
}

◆ UINT128_CONSTEXPR

#define UINT128_CONSTEXPR