1 #ifndef _ARITHMETIC_HPP 2 #define _ARITHMETIC_HPP 9 #include <debug/OptimizationDiagnostic.hpp> 69 template <
typename I1,
104 template <
typename I1,
110 a/greatestCommonDivisor(a,b)*b;
T sign(const T &x)
Sign of a number, +1 0 or -1.
auto leastCommonMultiple(const I1 &a, const I2 &b)
Return least common multiple between a and b.
#define ASM_BOOKMARK(COMMENT)
Include a comment in the assembler, recognizable in the compilation.
T safeModulo(const T &val, const T &mod)
T sqr(const T &x)
Square of a number.
auto greatestCommonDivisor(const I1 &_a, const I2 &_b)
Return greatest common divisor between a and b.