Lines Matching refs:a
45 * @param int $a the first integer
49 public static function gcd($a, $b) { argument
51 $a = abs((int) $a);
54 while ($a > 0) {
55 $c = $b % $a;
56 $b = $a;
57 $a = $c;
79 * @param int $a the first integer
83 public static function lcm($a, $b) { argument
85 $a = (int) $a;
88 if ($a == 0 || $b == 0) {
92 $a = abs($a) / GTUtil::gcd($a, $b);
95 if ($a > PHP_INT_MAX / $b) {
99 return $a * $b;