17 #ifndef UTILS_ARITH_HH
18 #define UTILS_ARITH_HH
22 namespace awali {
namespace utils {
27 unsigned int gcd(
unsigned int a,
unsigned int b)
41 unsigned int lcm(
unsigned int a,
unsigned int b)
43 return a /
gcd(a, b) * b;
48 int min(
int a,
int b) {
54 int max(
int a,
int b) {
ATTRIBUTE_CONST unsigned int gcd(unsigned int a, unsigned int b)
Definition: arith.hh:27
ATTRIBUTE_CONST unsigned int lcm(unsigned int a, unsigned int b)
Definition: arith.hh:41
ATTRIBUTE_CONST int max(int a, int b)
Definition: arith.hh:54
ATTRIBUTE_CONST int min(int a, int b)
Definition: arith.hh:48
Main namespace of Awali.
Definition: ato.hh:22