gallivm: minor rho calculation optimization for 1 or 3 coords