projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix broken exponential asm
[musl]
/
src
/
math
/
i386
/
exp.s
diff --git
a/src/math/i386/exp.s
b/src/math/i386/exp.s
index
18f6cd6
..
f4769d5
100644
(file)
--- a/
src/math/i386/exp.s
+++ b/
src/math/i386/exp.s
@@
-34,6
+34,15
@@
exp:
.type exp2,@function
exp2:
fldl 4(%esp)
+1: fxam
+ fnstsw %ax
+ sahf
+ jnp 1f
+ jnc 1f
+ fstps 4(%esp)
+ mov $0xfe,%al
+ and %al,7(%esp)
+ flds 4(%esp)
1: fld %st(0)
frndint
fxch %st(1)