Lines Matching refs:b
46 * @param int $b the second integer
49 public static function gcd($a, $b) { argument
52 $b = abs((int) $b);
55 $c = $b % $a;
56 $b = $a;
60 return $b;
80 * @param int $b the second integer
83 public static function lcm($a, $b) { argument
86 $b = (int) $b;
88 if ($a == 0 || $b == 0) {
92 $a = abs($a) / GTUtil::gcd($a, $b);
93 $b = abs($b);
95 if ($a > PHP_INT_MAX / $b) {
99 return $a * $b;