use type directives for fenv asm functions
authorRich Felker <dalias@aerifal.cx>
Tue, 28 Jun 2011 18:41:41 +0000 (14:41 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 28 Jun 2011 18:41:41 +0000 (14:41 -0400)
src/fenv/i386/fenv.s
src/fenv/x86_64/fenv.s

index 34101d5..8148a30 100644 (file)
@@ -8,6 +8,7 @@
        ret
 
 .global feclearexcept
+.type feclearexcept,@function
 feclearexcept: 
        xor %eax,%eax
        mov 4(%esp),%ecx
@@ -17,6 +18,7 @@ feclearexcept:
        ret
 
 .global feraiseexcept
+.type feraiseexcept,@function
 feraiseexcept: 
        xor %eax,%eax
        mov 4(%esp),%edx
@@ -26,6 +28,7 @@ feraiseexcept:
        ret
 
 .global fesetround
+.type fesetround,@function
 fesetround:
        mov 4(%esp),%ecx
        xor %eax,%eax
@@ -38,6 +41,7 @@ fesetround:
        ret
 
 .global fegetround
+.type fegetround,@function
 fegetround:
        sub $28,%esp
        fnstenv (%esp)
@@ -47,6 +51,7 @@ fegetround:
        ret
 
 .global fegetenv
+.type fegetenv,@function
 fegetenv:
        mov 4(%esp),%ecx
        xor %eax,%eax
@@ -54,6 +59,7 @@ fegetenv:
        ret
 
 .global fesetenv
+.type fesetenv,@function
 fesetenv:
        mov 4(%esp),%ecx
        xor %eax,%eax
@@ -73,6 +79,7 @@ fesetenv:
        ret
 
 .global fetestexcept
+.type fetestexcept,@function
 fetestexcept:
        mov 4(%esp),%ecx
        fnstsw %ax
index 3ed2275..8226b52 100644 (file)
@@ -11,6 +11,7 @@
        ret
 
 .global feclearexcept
+.type feclearexcept,@function
 feclearexcept: 
        xor %eax,%eax
        xor %esi,%esi
@@ -19,6 +20,7 @@ feclearexcept:
        ret
 
 .global feraiseexcept
+.type feraiseexcept,@function
 feraiseexcept: 
        xor %eax,%eax
        mov %edi,%esi
@@ -28,6 +30,7 @@ feraiseexcept:
        ret
 
 .global fesetround
+.type fesetround,@function
 fesetround:
        xor %eax,%eax
        sub $32,%rsp
@@ -44,6 +47,7 @@ fesetround:
        ret
 
 .global fegetround
+.type fegetround,@function
 fegetround:
        push %rax
        stmxcsr (%rsp)
@@ -53,6 +57,7 @@ fegetround:
        ret
 
 .global fegetenv
+.type fegetenv,@function
 fegetenv:
        xor %eax,%eax
        fnstenv (%rdi)
@@ -60,6 +65,7 @@ fegetenv:
        ret
 
 .global fesetenv
+.type fesetenv,@function
 fesetenv:
        xor %eax,%eax
        inc %rdi
@@ -78,6 +84,7 @@ fesetenv:
        ret
 
 .global fetestexcept
+.type fetestexcept,@function
 fetestexcept:
        push %rax
        stmxcsr (%rsp)