V9/libc/gen/lcm.c

Compare this file to the similar file:
Show the results in this format:

long
lcm(a, b)
{
	long c;
	if(a==0 && b==0)
		return(0L);
	c = a/gcd(a,b)*(long)b;
	return(c>=0? c: -c);
}