X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fi386%2Fexp.s;h=f4769d59c1ee499beacc8df5974ab45be60b9c8b;hb=0b70a1e9a9651d21242c5b6da327ecab0f1a38a6;hp=18f6cd67f6fbc5f24056ba6e9350ffdaec666092;hpb=6f26cf3dacf9d426bbd18cecb4d486da56c17351;p=musl diff --git a/src/math/i386/exp.s b/src/math/i386/exp.s index 18f6cd67..f4769d59 100644 --- 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)