std::math

gcd

macro gcd(...)
Calculate the greatest common divisor for the provided arguments.

Parameters