提交 6f26cf3d 编写于 作者: R Rich Felker

asm exponential functions for i386

上级 b9351477
.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
.global expm1f
.type expm1f,@function
expm1f:
flds 4(%esp)
jmp 1f
.global expm1l
.type expm1l,@function
expm1l:
fldt 4(%esp)
jmp 1f
.global expm1
.type expm1,@function
expm1:
fldl 4(%esp)
1: fldl2e
fmulp
fld %st(0)
frndint
fldz
fcompi
jnz 1f
fstp %st(0)
f2xm1
ret
1: fxch %st(1)
fsub %st(1)
f2xm1
fld1
faddp
fscale
fld1
fsubrp
fstp %st(1)
ret
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册