diff options
Diffstat (limited to 'sysdeps/mips')
-rw-r--r-- | sysdeps/mips/fclrexcpt.c | 14 | ||||
-rw-r--r-- | sysdeps/mips/fegetenv.c | 12 | ||||
-rw-r--r-- | sysdeps/mips/fesetenv.c | 10 | ||||
-rw-r--r-- | sysdeps/mips/feupdateenv.c | 12 | ||||
-rw-r--r-- | sysdeps/mips/fgetexcptflg.c | 12 |
5 files changed, 45 insertions, 15 deletions
diff --git a/sysdeps/mips/fclrexcpt.c b/sysdeps/mips/fclrexcpt.c index de96dd0b5c..990dfe6996 100644 --- a/sysdeps/mips/fclrexcpt.c +++ b/sysdeps/mips/fclrexcpt.c @@ -1,5 +1,5 @@ /* Clear given exceptions in current floating-point environment. - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998. @@ -21,8 +21,8 @@ #include <fenv.h> #include <fpu_control.h> -void -feclearexcept (int excepts) +int +__feclearexcept (int excepts) { int cw; @@ -34,7 +34,13 @@ feclearexcept (int excepts) /* Clear exception bits. */ cw &= ~excepts; - + /* Put the new data in effect. */ _FPU_SETCW (cw); + + /* Success. */ + return 0; } +strong_alias (__feclearexcept, __old_feclearexcept) +symbol_version (__old_feclearexcept, feclearexcept, GLIBC_2.1); +default_symbol_version (__feclearexcept, feclearexcept, GLIBC_2.1.3); diff --git a/sysdeps/mips/fegetenv.c b/sysdeps/mips/fegetenv.c index 13a2c8fc19..72b7ee5811 100644 --- a/sysdeps/mips/fegetenv.c +++ b/sysdeps/mips/fegetenv.c @@ -1,5 +1,5 @@ /* Store current floating-point environment. - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998. @@ -21,8 +21,14 @@ #include <fenv.h> #include <fpu_control.h> -void -fegetenv (fenv_t *envp) +int +__fegetenv (fenv_t *envp) { _FPU_GETCW (*envp); + + /* Success. */ + return 0; } +strong_alias (__fegetenv, __old_fegetenv) +symbol_version (__old_fegetenv, fegetenv, GLIBC_2.1); +default_symbol_version (__fegetenv, fegetenv, GLIBC_2.1.3); diff --git a/sysdeps/mips/fesetenv.c b/sysdeps/mips/fesetenv.c index 116fbaefce..43a571efde 100644 --- a/sysdeps/mips/fesetenv.c +++ b/sysdeps/mips/fesetenv.c @@ -21,11 +21,17 @@ #include <fenv.h> #include <fpu_control.h> -void -fesetenv (const fenv_t *envp) +int +__fesetenv (const fenv_t *envp) { if (envp == FE_DFL_ENV) _FPU_SETCW (_FPU_DEFAULT); else _FPU_SETCW (envp->__fp_control_register); + + /* Success. */ + return 0; } +strong_alias (__fesetenv, __old_fesetenv) +symbol_version (__old_fesetenv, fesetenv, GLIBC_2.1); +default_symbol_version (__fesetenv, fesetenv, GLIBC_2.1.3); diff --git a/sysdeps/mips/feupdateenv.c b/sysdeps/mips/feupdateenv.c index e826084671..f0748cee77 100644 --- a/sysdeps/mips/feupdateenv.c +++ b/sysdeps/mips/feupdateenv.c @@ -1,5 +1,5 @@ /* Install given floating-point environment and raise exceptions. - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998. @@ -21,8 +21,8 @@ #include <fenv.h> #include <fpu_control.h> -void -feupdateenv (const fenv_t *envp) +int +__feupdateenv (const fenv_t *envp) { int temp; @@ -37,4 +37,10 @@ feupdateenv (const fenv_t *envp) defined format of the values in objects of type fexcept_t is the same as the ones specified using the FE_* constants. */ feraiseexcept (temp); + + /* Success. */ + return 0; } +strong_alias (__feupdateenv, __old_feupdateenv) +symbol_version (__old_feupdateenv, feupdateenv, GLIBC_2.1); +default_symbol_version (__feupdateenv, feupdateenv, GLIBC_2.1.3); diff --git a/sysdeps/mips/fgetexcptflg.c b/sysdeps/mips/fgetexcptflg.c index f3d52bc555..8c586b5200 100644 --- a/sysdeps/mips/fgetexcptflg.c +++ b/sysdeps/mips/fgetexcptflg.c @@ -1,5 +1,5 @@ /* Store current representation for exceptions. - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998. @@ -21,8 +21,8 @@ #include <fenv.h> #include <fpu_control.h> -void -fegetexceptflag (fexcept_t *flagp, int excepts) +int +__fegetexceptflag (fexcept_t *flagp, int excepts) { fexcept_t temp; @@ -30,4 +30,10 @@ fegetexceptflag (fexcept_t *flagp, int excepts) _FPU_GETCW (temp); *flagp = temp & excepts & FE_ALL_EXCEPT; + + /* Success. */ + return 0; } +strong_alias (__fegetexceptflag, __old_fegetexceptflag) +symbol_version (__old_fegetexceptflag, fegetexceptflag, GLIBC_2.1); +default_symbol_version (__fegetexceptflag, fegetexceptflag, GLIBC_2.1.3); |