HomeFreeBSD

Fixed wrong magic numbers in scaling. hypotf() was very broken for large

Description

Fixed wrong magic numbers in scaling. hypotf() was very broken for large
and small values:

hypotf(2.3819765e+38, 2.0416943e+38) was NaN instead of 3.1372484e+38
hypotf(-3.4028235e+38, 3.3886450e+38) was NaN instead of Inf
hypotf(-2.8025969e-45, -2.8025969e-45) was 0 instead of 4.2038954e-45

Found by: ucbtest

Details

Provenance
Bruce Evans <bde@FreeBSD.org>Authored on Mar 5 1997, 11:54 AM
Parents
rGe990261c5872: make the netatalk output routine matcy the prtotype used in the
Branches
Unknown
Tags
Unknown

Event Timeline