提交 e22c2d3e 编写于 作者: R Rich Felker

use .type directives for math asm (needed for dynamic linking to work)

上级 32de61e8
.global expf .global expf
.type expf,@function
expf: expf:
mov 4(%esp),%eax mov 4(%esp),%eax
flds 4(%esp) flds 4(%esp)
...@@ -8,6 +9,7 @@ expf: ...@@ -8,6 +9,7 @@ expf:
jmp 0f jmp 0f
.global exp .global exp
.type exp,@function
exp: exp:
mov 8(%esp),%eax mov 8(%esp),%eax
fldl 4(%esp) fldl 4(%esp)
......
.global log .global log
.type log,@function
log: log:
fldln2 fldln2
fldl 4(%esp) fldl 4(%esp)
......
.global log10 .global log10
.type log10,@function
log10: log10:
fldlg2 fldlg2
fldl 4(%esp) fldl 4(%esp)
......
.global log10f .global log10f
.type log10f,@function
log10f: log10f:
fldlg2 fldlg2
flds 4(%esp) flds 4(%esp)
......
.global logf .global logf
.type logf,@function
logf: logf:
fldln2 fldln2
flds 4(%esp) flds 4(%esp)
......
.global remainderf .global remainderf
.type remainderf,@function
remainderf: remainderf:
flds 8(%esp) flds 8(%esp)
flds 4(%esp) flds 4(%esp)
jmp 1f jmp 1f
.global remainder .global remainder
.type remainder,@function
remainder: remainder:
fldl 12(%esp) fldl 12(%esp)
fldl 4(%esp) fldl 4(%esp)
......
.global sqrt .global sqrt
.type sqrt,@function
sqrt: fldl 4(%esp) sqrt: fldl 4(%esp)
fsqrt fsqrt
ret ret
.global sqrtf .global sqrtf
.type sqrtf,@function
sqrtf: flds 4(%esp) sqrtf: flds 4(%esp)
fsqrt fsqrt
ret ret
.global fabs .global fabs
.type fabs,@function
fabs: fabs:
fldl 4(%esp) fldl 4(%esp)
fabs fabs
......
.global fabsf .global fabsf
.type fabsf,@function
fabsf: fabsf:
flds 4(%esp) flds 4(%esp)
fabs fabs
......
.global rint .global rint
.type rint,@function
rint: rint:
fldl 4(%esp) fldl 4(%esp)
frndint frndint
......
.global rintf .global rintf
.type rintf,@function
rintf: rintf:
flds 4(%esp) flds 4(%esp)
frndint frndint
......
.global ldexp .global ldexp
.global scalbn .global scalbn
.global scalbln .global scalbln
.type ldexp,@function
.type scalbn,@function
.type scalbln,@function
ldexp: ldexp:
scalbn: scalbn:
scalbln: scalbln:
......
.global ldexpf .global ldexpf
.global scalbnf .global scalbnf
.global scalblnf .global scalblnf
.type ldexpf,@function
.type scalbnf,@function
.type scalblnf,@function
ldexpf: ldexpf:
scalbnf: scalbnf:
scalblnf: scalblnf:
......
.global ceilf .global ceilf
.type ceilf,@function
ceilf: flds 4(%esp) ceilf: flds 4(%esp)
jmp 1f jmp 1f
.global ceil .global ceil
.type ceil,@function
ceil: fldl 4(%esp) ceil: fldl 4(%esp)
1: mov $0x08fb,%edx 1: mov $0x08fb,%edx
jmp 0f jmp 0f
.global floorf .global floorf
.type floorf,@function
floorf: flds 4(%esp) floorf: flds 4(%esp)
jmp 1f jmp 1f
.global floor .global floor
.type floor,@function
floor: fldl 4(%esp) floor: fldl 4(%esp)
1: mov $0x04f7,%edx 1: mov $0x04f7,%edx
jmp 0f jmp 0f
.global truncf .global truncf
.type truncf,@function
truncf: flds 4(%esp) truncf: flds 4(%esp)
jmp 1f jmp 1f
.global trunc .global trunc
.type trunc,@function
trunc: fldl 4(%esp) trunc: fldl 4(%esp)
1: mov $0x0cff,%edx 1: mov $0x0cff,%edx
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册