提交 37eb14dd 编写于 作者: R Rich Felker

asm for lrint family on i386

上级 6f26cf3d
.global llrint
.type llrint,@function
llrint:
fldl 4(%esp)
fistpl 4(%esp)
mov 4(%esp),%eax
mov 8(%esp),%edx
ret
.global llrintf
.type llrintf,@function
llrintf:
sub $8,%esp
flds 12(%esp)
fistpq (%esp)
pop %eax
pop %edx
ret
.global llrintl
.type llrintl,@function
llrintl:
fldt 4(%esp)
fistpl 4(%esp)
mov 4(%esp),%eax
mov 8(%esp),%edx
ret
.global lrint
.type lrint,@function
lrint:
fldl 4(%esp)
fistpl 4(%esp)
mov 4(%esp),%eax
ret
.global lrintf
.type lrintf,@function
lrintf:
flds 4(%esp)
fistpl 4(%esp)
mov 4(%esp),%eax
ret
.global lrintl
.type lrintl,@function
lrintl:
fldt 4(%esp)
fistpl 4(%esp)
mov 4(%esp),%eax
ret
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册