]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixed the sign of the result in some overflow and underflow cases (ones
authorbde <bde@FreeBSD.org>
Tue, 1 Jun 2004 19:28:38 +0000 (19:28 +0000)
committerbde <bde@FreeBSD.org>
Tue, 1 Jun 2004 19:28:38 +0000 (19:28 +0000)
commit152787c7f1507eb2e375c33079fe9f8816b00298
tree03bf14b1362e23f860011d061d2bf2a3d5aa1ffb
parent719aa077cb43ef51a1a90748f36a8f0e11e155c6
Fixed the sign of the result in some overflow and underflow cases (ones
where the exponent is an odd integer and the base is negative).

Obtained from: fdlibm-5.3

Sun finally released a new version of fdlibm just a coupe of weeks
ago.  It only fixes 3 bugs (this one, another one in pow() that we
already have (rev.1.9), and one in tan().  I've learned too much about
powf() lately, so this fix was easy to merge.  The patch is not verbatim,
because our base version has many differences for portability and I
didn't like global renaming of an unrelated variable to keep it separate
from the sign variable.  This patch uses a new variable named sn for
the sign.
lib/msun/src/e_pow.c