extend hypot() fix to all architectures, and isInf() takes two arguments