Change the computation of ULP distance to detect overflow.