GCD support for negative numbers and zero.