OR-Tools  9.3
saturated_arithmetic.h File Reference

Go to the source code of this file.

Namespaces

namespace  operations_research
 Collection of objects used to extend the Constraint Solver library.
 
namespace  operations_research::cap_prod_util
 

Functions

int64_t TwosComplementAddition (int64_t x, int64_t y)
 
int64_t TwosComplementSubtraction (int64_t x, int64_t y)
 
bool AddHadOverflow (int64_t x, int64_t y, int64_t sum)
 
bool SubHadOverflow (int64_t x, int64_t y, int64_t diff)
 
bool AddOverflows (int64_t x, int64_t y)
 
int64_t SubOverflows (int64_t x, int64_t y)
 
template<typename IntegerType >
bool SafeAddInto (IntegerType a, IntegerType *b)
 
int64_t CapWithSignOf (int64_t x)
 
int64_t CapAddGeneric (int64_t x, int64_t y)
 
int64_t CapAdd (int64_t x, int64_t y)
 
void CapAddTo (int64_t x, int64_t *y)
 
int64_t CapSubGeneric (int64_t x, int64_t y)
 
int64_t CapSub (int64_t x, int64_t y)
 
int64_t CapOpp (int64_t v)
 
uint64_t uint_abs (int64_t n)
 
int64_t CapProdGeneric (int64_t x, int64_t y)
 
int64_t CapProd (int64_t x, int64_t y)