summaryrefslogtreecommitdiff
path: root/sysdeps/arm/fpu
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/arm/fpu')
-rw-r--r--sysdeps/arm/fpu/fclrexcpt.c16
-rw-r--r--sysdeps/arm/fpu/fegetenv.c12
-rw-r--r--sysdeps/arm/fpu/fesetenv.c16
-rw-r--r--sysdeps/arm/fpu/fraiseexcpt.c16
-rw-r--r--sysdeps/arm/fpu/fsetexcptflg.c16
5 files changed, 53 insertions, 23 deletions
diff --git a/sysdeps/arm/fpu/fclrexcpt.c b/sysdeps/arm/fpu/fclrexcpt.c
index 34ad36dfa8..0bcdfdf5d9 100644
--- a/sysdeps/arm/fpu/fclrexcpt.c
+++ b/sysdeps/arm/fpu/fclrexcpt.c
@@ -1,5 +1,5 @@
/* Clear given exceptions in current floating-point environment.
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -20,8 +20,8 @@
#include <fenv.h>
#include <fpu_control.h>
-void
-feclearexcept (int excepts)
+int
+__feclearexcept (int excepts)
{
unsigned long int temp;
@@ -29,11 +29,17 @@ feclearexcept (int excepts)
excepts &= FE_ALL_EXCEPT;
/* Get the current floating point status. */
- _FPU_GETCW(temp);
+ _FPU_GETCW (temp);
/* Clear the relevant bits. */
temp &= excepts ^ FE_ALL_EXCEPT;
/* Put the new data in effect. */
- _FPU_SETCW(temp);
+ _FPU_SETCW (temp);
+
+ /* 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/arm/fpu/fegetenv.c b/sysdeps/arm/fpu/fegetenv.c
index 99dc1f0d8c..7fde5f21e4 100644
--- a/sysdeps/arm/fpu/fegetenv.c
+++ b/sysdeps/arm/fpu/fegetenv.c
@@ -20,10 +20,16 @@
#include <fenv.h>
#include <fpu_control.h>
-void
-fegetenv (fenv_t *envp)
+int
+__fegetenv (fenv_t *envp)
{
unsigned long int temp;
- _FPU_GETCW(temp);
+ _FPU_GETCW (temp);
envp->__cw = temp;
+
+ /* 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/arm/fpu/fesetenv.c b/sysdeps/arm/fpu/fesetenv.c
index 7f3a434778..13cda82554 100644
--- a/sysdeps/arm/fpu/fesetenv.c
+++ b/sysdeps/arm/fpu/fesetenv.c
@@ -20,14 +20,20 @@
#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);
+ _FPU_SETCW (_FPU_DEFAULT);
else
{
- unsigned long temp = envp->__cw;
- _FPU_SETCW(temp);
+ unsigned long int temp = envp->__cw;
+ _FPU_SETCW (temp);
}
+
+ /* 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/arm/fpu/fraiseexcpt.c b/sysdeps/arm/fpu/fraiseexcpt.c
index 0fbfb16c94..77d928a32b 100644
--- a/sysdeps/arm/fpu/fraiseexcpt.c
+++ b/sysdeps/arm/fpu/fraiseexcpt.c
@@ -1,5 +1,5 @@
/* Raise given exceptions.
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,12 +21,18 @@
#include <fpu_control.h>
#include <math.h>
-void
-feraiseexcept (int excepts)
+int
+__feraiseexcept (int excepts)
{
/* Raise exceptions represented by EXPECTS. */
fexcept_t temp;
- _FPU_GETCW(temp);
+ _FPU_GETCW (temp);
temp |= (excepts & FE_ALL_EXCEPT);
- _FPU_SETCW(temp);
+ _FPU_SETCW (temp);
+
+ /* Success. */
+ return 0;
}
+strong_alias (__feraiseexcept, __old_feraiseexcept)
+symbol_version (__old_feraiseexcept, feraiseexcept, GLIBC_2.1);
+default_symbol_version (__feraiseexcept, feraiseexcept, GLIBC_2.1.3);
diff --git a/sysdeps/arm/fpu/fsetexcptflg.c b/sysdeps/arm/fpu/fsetexcptflg.c
index f5c06a6f6c..ef157a27ed 100644
--- a/sysdeps/arm/fpu/fsetexcptflg.c
+++ b/sysdeps/arm/fpu/fsetexcptflg.c
@@ -1,5 +1,5 @@
/* Set floating-point environment exception handling.
- Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,18 +21,24 @@
#include <math.h>
#include <fpu_control.h>
-void
-fesetexceptflag (const fexcept_t *flagp, int excepts)
+int
+__fesetexceptflag (const fexcept_t *flagp, int excepts)
{
fexcept_t temp;
/* Get the current environment. */
- _FPU_GETCW(temp);
+ _FPU_GETCW (temp);
/* Set the desired exception mask. */
temp &= ~((excepts & FE_ALL_EXCEPT) << FE_EXCEPT_SHIFT);
temp |= (*flagp & excepts & FE_ALL_EXCEPT) << FE_EXCEPT_SHIFT;
/* Save state back to the FPU. */
- _FPU_SETCW(temp);
+ _FPU_SETCW (temp);
+
+ /* Success. */
+ return 0;
}
+strong_alias (__fesetexceptflag, __old_fesetexceptflag)
+symbol_version (__old_fesetexceptflag, fesetexceptflag, GLIBC_2.1);
+default_symbol_version (__fesetexceptflag, fesetexceptflag, GLIBC_2.1.3);