diff options
author | nsz <nsz@port70.net> | 2012-03-19 02:55:31 +0100 |
---|---|---|
committer | nsz <nsz@port70.net> | 2012-03-19 02:55:31 +0100 |
commit | dbdec9722ee604969dddf51e81f8c9e4a9ce064a (patch) | |
tree | 6806b3c8799e0907c0336b882c1dc1cad67c2bb7 /src/math/i386/exp.s | |
parent | 682e471400da612769b6e061f2e377db837274ef (diff) | |
parent | 6f26cf3dacf9d426bbd18cecb4d486da56c17351 (diff) | |
download | musl-dbdec9722ee604969dddf51e81f8c9e4a9ce064a.tar.gz musl-dbdec9722ee604969dddf51e81f8c9e4a9ce064a.tar.xz musl-dbdec9722ee604969dddf51e81f8c9e4a9ce064a.zip |
Merge branch 'master' of git://git.etalabs.net/musl
Diffstat (limited to 'src/math/i386/exp.s')
-rw-r--r-- | src/math/i386/exp.s | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/math/i386/exp.s b/src/math/i386/exp.s new file mode 100644 index 00000000..18f6cd67 --- /dev/null +++ b/src/math/i386/exp.s @@ -0,0 +1,46 @@ +.global exp2f +.type exp2f,@function +exp2f: + flds 4(%esp) + jmp 1f + +.global exp2l +.type exp2l,@function +exp2l: + fldt 4(%esp) + jmp 1f + +.global expf +.type expf,@function +expf: + flds 4(%esp) + jmp 2f + +.global expl +.type expl,@function +expl: + fldt 4(%esp) + jmp 2f + +.global exp +.type exp,@function +exp: + fldl 4(%esp) +2: fldl2e + fmulp + jmp 1f + +.global exp2 +.type exp2,@function +exp2: + fldl 4(%esp) +1: fld %st(0) + frndint + fxch %st(1) + fsub %st(1) + f2xm1 + fld1 + faddp + fscale + fstp %st(1) + ret |