use type directives for fenv asm functions

This commit is contained in:
Rich Felker 2011-06-28 14:41:41 -04:00
parent bf30100ad7
commit e411827960
2 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,7 @@
ret ret
.global feclearexcept .global feclearexcept
.type feclearexcept,@function
feclearexcept: feclearexcept:
xor %eax,%eax xor %eax,%eax
mov 4(%esp),%ecx mov 4(%esp),%ecx
@ -17,6 +18,7 @@ feclearexcept:
ret ret
.global feraiseexcept .global feraiseexcept
.type feraiseexcept,@function
feraiseexcept: feraiseexcept:
xor %eax,%eax xor %eax,%eax
mov 4(%esp),%edx mov 4(%esp),%edx
@ -26,6 +28,7 @@ feraiseexcept:
ret ret
.global fesetround .global fesetround
.type fesetround,@function
fesetround: fesetround:
mov 4(%esp),%ecx mov 4(%esp),%ecx
xor %eax,%eax xor %eax,%eax
@ -38,6 +41,7 @@ fesetround:
ret ret
.global fegetround .global fegetround
.type fegetround,@function
fegetround: fegetround:
sub $28,%esp sub $28,%esp
fnstenv (%esp) fnstenv (%esp)
@ -47,6 +51,7 @@ fegetround:
ret ret
.global fegetenv .global fegetenv
.type fegetenv,@function
fegetenv: fegetenv:
mov 4(%esp),%ecx mov 4(%esp),%ecx
xor %eax,%eax xor %eax,%eax
@ -54,6 +59,7 @@ fegetenv:
ret ret
.global fesetenv .global fesetenv
.type fesetenv,@function
fesetenv: fesetenv:
mov 4(%esp),%ecx mov 4(%esp),%ecx
xor %eax,%eax xor %eax,%eax
@ -73,6 +79,7 @@ fesetenv:
ret ret
.global fetestexcept .global fetestexcept
.type fetestexcept,@function
fetestexcept: fetestexcept:
mov 4(%esp),%ecx mov 4(%esp),%ecx
fnstsw %ax fnstsw %ax

View File

@ -11,6 +11,7 @@
ret ret
.global feclearexcept .global feclearexcept
.type feclearexcept,@function
feclearexcept: feclearexcept:
xor %eax,%eax xor %eax,%eax
xor %esi,%esi xor %esi,%esi
@ -19,6 +20,7 @@ feclearexcept:
ret ret
.global feraiseexcept .global feraiseexcept
.type feraiseexcept,@function
feraiseexcept: feraiseexcept:
xor %eax,%eax xor %eax,%eax
mov %edi,%esi mov %edi,%esi
@ -28,6 +30,7 @@ feraiseexcept:
ret ret
.global fesetround .global fesetround
.type fesetround,@function
fesetround: fesetround:
xor %eax,%eax xor %eax,%eax
sub $32,%rsp sub $32,%rsp
@ -44,6 +47,7 @@ fesetround:
ret ret
.global fegetround .global fegetround
.type fegetround,@function
fegetround: fegetround:
push %rax push %rax
stmxcsr (%rsp) stmxcsr (%rsp)
@ -53,6 +57,7 @@ fegetround:
ret ret
.global fegetenv .global fegetenv
.type fegetenv,@function
fegetenv: fegetenv:
xor %eax,%eax xor %eax,%eax
fnstenv (%rdi) fnstenv (%rdi)
@ -60,6 +65,7 @@ fegetenv:
ret ret
.global fesetenv .global fesetenv
.type fesetenv,@function
fesetenv: fesetenv:
xor %eax,%eax xor %eax,%eax
inc %rdi inc %rdi
@ -78,6 +84,7 @@ fesetenv:
ret ret
.global fetestexcept .global fetestexcept
.type fetestexcept,@function
fetestexcept: fetestexcept:
push %rax push %rax
stmxcsr (%rsp) stmxcsr (%rsp)