about summary refs log tree commit diff
path: root/sysdeps/powerpc/fclrexcpt.c
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2001-12-06 00:12:11 +0000
committerGeoff Keating <geoffk@cygnus.com>2001-12-06 00:12:11 +0000
commit578618390583aa9c1e3dc70b87c1f7d19478e996 (patch)
tree5c566bcdd9bf30c8601b4f34da9cd6893362630f /sysdeps/powerpc/fclrexcpt.c
parentfa13c459a156097766bedb4f1ca6f86f516e03b3 (diff)
downloadglibc-578618390583aa9c1e3dc70b87c1f7d19478e996.tar.gz
glibc-578618390583aa9c1e3dc70b87c1f7d19478e996.tar.xz
glibc-578618390583aa9c1e3dc70b87c1f7d19478e996.zip
* sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
* sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers. 
* sysdeps/powerpc/setjmp.S: Don't save FP registers. 
* sysdeps/powerpc/fpu/setjmp.S: Do save FP registers. 
* sysdeps/powerpc/fclrexcpt.c: Move to... 
* sysdeps/powerpc/fpu/fclrexcpt.c: ... here. 
* sysdeps/powerpc/fpu_control.h: Move to... 
* sysdeps/powerpc/fpu/fpu_control.h: ... here.
2001-12-05  Geoff Keating  <geoffk@redhat.com>

	* sysdeps/powerpc/__longjmp.S: Don't restore FP registers.
	* sysdeps/powerpc/fpu/__longjmp.S: Do restore FP registers.
	* sysdeps/powerpc/setjmp.S: Don't save FP registers.
	* sysdeps/powerpc/fpu/setjmp.S: Do save FP registers.
	* sysdeps/powerpc/fclrexcpt.c: Move to...
	* sysdeps/powerpc/fpu/fclrexcpt.c: ... here.
	* sysdeps/powerpc/fpu_control.h: Move to...
	* sysdeps/powerpc/fpu/fpu_control.h: ... here.
Diffstat (limited to 'sysdeps/powerpc/fclrexcpt.c')
-rw-r--r--sysdeps/powerpc/fclrexcpt.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/sysdeps/powerpc/fclrexcpt.c b/sysdeps/powerpc/fclrexcpt.c
deleted file mode 100644
index d06e47143a..0000000000
--- a/sysdeps/powerpc/fclrexcpt.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Clear given exceptions in current floating-point environment.
-   Copyright (C) 1997,99,2000,01 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
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
-
-#include <fenv_libc.h>
-
-#undef feclearexcept
-int
-__feclearexcept (int excepts)
-{
-  fenv_union_t u;
-
-  /* Get the current state.  */
-  u.fenv = fegetenv_register ();
-
-  /* Clear the relevant bits.  */
-  u.l[1] = u.l[1] & ~((-(excepts >> (31 - FPSCR_VX) & 1) & FE_ALL_INVALID)
-		      | (excepts & FPSCR_STICKY_BITS));
-
-  /* Put the new state in effect.  */
-  fesetenv_register (u.fenv);
-
-  /* Success.  */
-  return 0;
-}
-
-#include <shlib-compat.h>
-#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
-strong_alias (__feclearexcept, __old_feclearexcept)
-compat_symbol (libm, __old_feclearexcept, feclearexcept, GLIBC_2_1);
-#endif
-
-versioned_symbol (libm, __feclearexcept, feclearexcept, GLIBC_2_2);