diff options
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/fpu/fegetround.c | 9 | ||||
-rw-r--r-- | sysdeps/powerpc/nofpu/fegetround.c | 7 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c | 7 |
3 files changed, 14 insertions, 9 deletions
diff --git a/sysdeps/powerpc/fpu/fegetround.c b/sysdeps/powerpc/fpu/fegetround.c index a18be8306f..af97f72c6c 100644 --- a/sysdeps/powerpc/fpu/fegetround.c +++ b/sysdeps/powerpc/fpu/fegetround.c @@ -18,10 +18,13 @@ #include <fenv_libc.h> -#undef fegetround int -fegetround (void) +(__fegetround) (void) { return __fegetround(); } -libm_hidden_def (fegetround) +#undef fegetround +#undef __fegetround +libm_hidden_def (__fegetround) +weak_alias (__fegetround, fegetround) +libm_hidden_weak (fegetround) diff --git a/sysdeps/powerpc/nofpu/fegetround.c b/sysdeps/powerpc/nofpu/fegetround.c index 9de326cc0f..311b2d5749 100644 --- a/sysdeps/powerpc/nofpu/fegetround.c +++ b/sysdeps/powerpc/nofpu/fegetround.c @@ -20,10 +20,11 @@ #include "soft-fp.h" #include "soft-supp.h" -#undef fegetround int -fegetround (void) +__fegetround (void) { return __sim_round_mode_thread; } -libm_hidden_def (fegetround) +libm_hidden_def (__fegetround) +weak_alias (__fegetround, fegetround) +libm_hidden_weak (fegetround) diff --git a/sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c b/sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c index c71a8fc627..bbdeba70b1 100644 --- a/sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c +++ b/sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c @@ -18,13 +18,14 @@ #include <fenv_libc.h> -#undef fegetround int -fegetround (void) +__fegetround (void) { unsigned long fpescr; fpescr = fegetenv_register (); return fpescr & 3; } -libm_hidden_def (fegetround) +libm_hidden_def (__fegetround) +weak_alias (__fegetround, fegetround) +libm_hidden_weak (fegetround) |