ret
.global __fesetround
+.hidden __fesetround
.type __fesetround,%function
__fesetround:
mrs x1, fpcr
bx lr
.global __fesetround
+.hidden __fesetround
.type __fesetround,%function
__fesetround:
fmrx r3, fpscr
#include <fenv.h>
+#include "libc.h"
/* __fesetround wrapper for arch independent argument check */
-int __fesetround(int);
+hidden int __fesetround(int);
int fesetround(int r)
{
ret
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
mov 4(%esp),%ecx
#include <fenv.h>
+#include "libc.h"
#if __HAVE_68881__ || __mcffpu__
return getcr() & FE_UPWARD;
}
-int __fesetround(int r)
+hidden int __fesetround(int r)
{
setcr((getcr() & ~FE_UPWARD) | r);
return 0;
andi $2, $2, 3
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
cfc1 $5, $31
andi $2, $2, 3
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
cfc1 $5, $31
andi $2, $2, 3
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
cfc1 $5, $31
blr
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
/*
#define _GNU_SOURCE
#include <fenv.h>
+#include "libc.h"
static inline double get_fpscr_f(void)
{
return get_fpscr() & 3;
}
-int __fesetround(int r)
+hidden int __fesetround(int r)
{
set_fpscr(get_fpscr() & ~3L | r);
return 0;
#include <fenv.h>
+#include "libc.h"
static inline unsigned get_fpc(void)
{
return get_fpc() & 3;
}
-int __fesetround(int r)
+hidden int __fesetround(int r)
{
set_fpc(get_fpc() & ~3L | r);
return 0;
and #3, r0
.global __fesetround
+.hidden __fesetround
.type __fesetround, @function
__fesetround:
sts fpscr, r0
ret
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
push %rax
ret
.global __fesetround
+.hidden __fesetround
.type __fesetround,@function
__fesetround:
push %rax