9 #ifndef CPPCOMMON_MATH_MATH_H
10 #define CPPCOMMON_MATH_MATH_H
40 static T
GCD(T a, T b);
58 static uint64_t
MulDiv64(uint64_t operant, uint64_t multiplier, uint64_t divider);
static uint64_t MulDiv64(uint64_t operant, uint64_t multiplier, uint64_t divider)
Calculate (operant * multiplier / divider) with 64-bit unsigned integer values.
static T GCD(T a, T b)
Computes the greatest common divisor of a and b.
Math & operator=(const Math &)=delete
Math & operator=(Math &&)=delete
static T RoundUp(T a, T k)
Finds the smallest value x >= a such that x % k == 0.
Math(const Math &)=delete
Math inline implementation.
C++ Common project definitions.