fix broken exponential asm
authorRich Felker <dalias@aerifal.cx>
Mon, 19 Mar 2012 03:17:28 +0000 (23:17 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 19 Mar 2012 03:17:28 +0000 (23:17 -0400)
commitaa1b4dff45788f8205e32ea01da243fe09568aa8
tree2fb4aa7cf4e3b9ead26ac895d4a22794144f59dd
parent37eb14dd2b92c51404fa54f56b6dfcd487ab5cbb
fix broken exponential asm

infinities were getting converted into nans. the new code simply tests
for infinity and replaces it with a large magnitude value of the same
sign.

also, the fcomi instruction is apparently not part of the i387
instruction set, so avoid using it.
src/math/i386/exp.s
src/math/i386/expm1.s