make arch __fesetround backends hidden
authorRich Felker <dalias@aerifal.cx>
Mon, 10 Sep 2018 19:51:44 +0000 (15:51 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:32 +0000 (14:34 -0400)
these are not public interfaces and do not match the public function,
but delegate argument checking to it.

14 files changed:
src/fenv/aarch64/fenv.s
src/fenv/arm/fenv-hf.S
src/fenv/fesetround.c
src/fenv/i386/fenv.s
src/fenv/m68k/fenv.c
src/fenv/mips/fenv.S
src/fenv/mips64/fenv.S
src/fenv/mipsn32/fenv.S
src/fenv/powerpc/fenv.S
src/fenv/powerpc64/fenv.c
src/fenv/s390x/fenv.c
src/fenv/sh/fenv.S
src/fenv/x32/fenv.s
src/fenv/x86_64/fenv.s

index f0db5d9..8f3ec96 100644 (file)
@@ -6,6 +6,7 @@ fegetround:
        ret
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,%function
 __fesetround:
        mrs x1, fpcr
index f55d798..2a1de0d 100644 (file)
@@ -11,6 +11,7 @@ fegetround:
        bx lr
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,%function
 __fesetround:
        fmrx r3, fpscr
index 9bbd4ad..a85db71 100644 (file)
@@ -1,8 +1,9 @@
 #include <fenv.h>
+#include "libc.h"
 
 /* __fesetround wrapper for arch independent argument check */
 
-int __fesetround(int);
+hidden int __fesetround(int);
 
 int fesetround(int r)
 {
index a189ca2..e7f7932 100644 (file)
@@ -61,6 +61,7 @@ feraiseexcept:
        ret
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,@function
 __fesetround:
        mov 4(%esp),%ecx
index e60949d..fa85379 100644 (file)
@@ -1,4 +1,5 @@
 #include <fenv.h>
+#include "libc.h"
 
 #if __HAVE_68881__ || __mcffpu__
 
@@ -50,7 +51,7 @@ int fegetround(void)
        return getcr() & FE_UPWARD;
 }
 
-int __fesetround(int r)
+hidden int __fesetround(int r)
 {
        setcr((getcr() & ~FE_UPWARD) | r);
        return 0;
index a5cb1f5..ffa9297 100644 (file)
@@ -39,6 +39,7 @@ fegetround:
        andi    $2, $2, 3
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,@function
 __fesetround:
        cfc1    $5, $31
index 3cba3f0..d5e0a62 100644 (file)
@@ -39,6 +39,7 @@ fegetround:
        andi    $2, $2, 3
 
 .global        __fesetround
+.hidden __fesetround
 .type  __fesetround,@function
 __fesetround:
        cfc1    $5, $31
index cce6436..563d322 100644 (file)
@@ -38,6 +38,7 @@ fegetround:
        andi    $2, $2, 3
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,@function
 __fesetround:
        cfc1    $5, $31
index 1516eb5..22cea21 100644 (file)
@@ -79,6 +79,7 @@ fegetround:
        blr
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,@function
 __fesetround:
        /*
index 739420b..9db0fb6 100644 (file)
@@ -1,5 +1,6 @@
 #define _GNU_SOURCE
 #include <fenv.h>
+#include "libc.h"
 
 static inline double get_fpscr_f(void)
 {
@@ -49,7 +50,7 @@ int fegetround(void)
        return get_fpscr() & 3;
 }
 
-int __fesetround(int r)
+hidden int __fesetround(int r)
 {
        set_fpscr(get_fpscr() & ~3L | r);
        return 0;
index 9a3488d..72b9dbe 100644 (file)
@@ -1,4 +1,5 @@
 #include <fenv.h>
+#include "libc.h"
 
 static inline unsigned get_fpc(void)
 {
@@ -36,7 +37,7 @@ int fegetround(void)
        return get_fpc() & 3;
 }
 
-int __fesetround(int r)
+hidden int __fesetround(int r)
 {
        set_fpc(get_fpc() & ~3L | r);
        return 0;
index cd47b5b..907aefc 100644 (file)
@@ -8,6 +8,7 @@ fegetround:
         and #3, r0
 
 .global __fesetround
+.hidden __fesetround
 .type   __fesetround, @function
 __fesetround:
        sts fpscr, r0
index 4531046..835f23b 100644 (file)
@@ -30,6 +30,7 @@ feraiseexcept:
        ret
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,@function
 __fesetround:
        push %rax
index b5aeaf4..98d876d 100644 (file)
@@ -30,6 +30,7 @@ feraiseexcept:
        ret
 
 .global __fesetround
+.hidden __fesetround
 .type __fesetround,@function
 __fesetround:
        push %rax