OR-Tools  8.1
saturated_arithmetic.h File Reference

Go to the source code of this file.

Namespaces

 operations_research
 The vehicle routing library lets one model and solve generic vehicle routing problems ranging from the Traveling Salesman Problem to more complex problems such as the Capacitated Vehicle Routing Problem with Time Windows.
 
 operations_research::cap_prod_util
 

Functions

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