about summary refs log tree commit diff
path: root/sysdeps/i386/fpu/fesetenv.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-23 10:13:49 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-23 10:13:49 +0000
commit33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4 (patch)
tree2c861964841fff8f99fae821d12e4522a747e4b9 /sysdeps/i386/fpu/fesetenv.c
parent0a51738ed9721654a75f22c0cf016f1df0eb905b (diff)
downloadglibc-33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4.tar.gz
glibc-33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4.tar.xz
glibc-33d1a2c5b8fe391db7d99821ef09c55ab45bf5a4.zip
Update.
1999-05-23  Ulrich Drepper  <drepper@cygnus.com>

	* sysdeps/alpha/fpu/bits/fenv.h: Pretty print.

	* sysdeps/sparc/sparc64/fpu/bits/fenv.h: Remove unneeded #if.

1999-05-22  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* sysdeps/m68k/fpu/bits/fenv.h (fenv_t): Prepend __ to member
	names to protect from user's macro namespace.
	* sysdeps/arm/fpu/bits/fenv.h (fenv_t): Likewise.
	* sysdeps/generic/bits/fenv.h (fexcept_t, fenv_t): Likewise.
	* sysdeps/i386/fpu/bits/fenv.h (fenv_t): Likewise.
	* sysdeps/mips/bits/fenv.h (fenv_t): Likewise.
	* sysdeps/m68k/fpu/feholdexcpt.c, sysdeps/m68k/fpu/fesetenv.c:
	Adapted.
	* sysdeps/arm/fpu/fegetenv.c, sysdeps/arm/fpu/feholdexcpt.c,
	sysdeps/arm/fpu/fesetenv.c: Likewise.
	* sysdeps/i386/fpu/fclrexcpt.c, sysdeps/i386/fpu/feholdexcpt.c,
	sysdeps/i386/fpu/fesetenv.c, sysdeps/i386/fpu/fraiseexcpt.c,
	sysdeps/i386/fpu/fsetexcptflg.c: Likewise.
	* sysdeps/mips/fesetenv.c: Likewise.
Diffstat (limited to 'sysdeps/i386/fpu/fesetenv.c')
-rw-r--r--sysdeps/i386/fpu/fesetenv.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/sysdeps/i386/fpu/fesetenv.c b/sysdeps/i386/fpu/fesetenv.c
index 3641bb82d3..4a9cbed43f 100644
--- a/sysdeps/i386/fpu/fesetenv.c
+++ b/sysdeps/i386/fpu/fesetenv.c
@@ -1,5 +1,5 @@
 /* Install given 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.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -39,37 +39,37 @@ fesetenv (const fenv_t *envp)
 
   if (envp == FE_DFL_ENV)
     {
-      temp.control_word |= FE_ALL_EXCEPT;
-      temp.control_word &= ~FE_TOWARDZERO;
-      temp.status_word &= ~FE_ALL_EXCEPT;
-      temp.eip = 0;
-      temp.cs_selector = 0;
-      temp.opcode = 0;
-      temp.data_offset = 0;
-      temp.data_selector = 0;
+      temp.__control_word |= FE_ALL_EXCEPT;
+      temp.__control_word &= ~FE_TOWARDZERO;
+      temp.__status_word &= ~FE_ALL_EXCEPT;
+      temp.__eip = 0;
+      temp.__cs_selector = 0;
+      temp.__opcode = 0;
+      temp.__data_offset = 0;
+      temp.__data_selector = 0;
     }
   else if (envp == FE_NOMASK_ENV)
     {
-      temp.control_word &= ~(FE_ALL_EXCEPT | FE_TOWARDZERO);
-      temp.status_word &= ~FE_ALL_EXCEPT;
-      temp.eip = 0;
-      temp.cs_selector = 0;
-      temp.opcode = 0;
-      temp.data_offset = 0;
-      temp.data_selector = 0;
+      temp.__control_word &= ~(FE_ALL_EXCEPT | FE_TOWARDZERO);
+      temp.__status_word &= ~FE_ALL_EXCEPT;
+      temp.__eip = 0;
+      temp.__cs_selector = 0;
+      temp.__opcode = 0;
+      temp.__data_offset = 0;
+      temp.__data_selector = 0;
     }
   else
     {
-      temp.control_word &= ~(FE_ALL_EXCEPT | FE_TOWARDZERO);
-      temp.control_word |= (envp->control_word
-			    & (FE_ALL_EXCEPT | FE_TOWARDZERO));
-      temp.status_word &= ~FE_ALL_EXCEPT;
-      temp.status_word |= envp->status_word & FE_ALL_EXCEPT;
-      temp.eip = envp->eip;
-      temp.cs_selector = envp->cs_selector;
-      temp.opcode = envp->opcode;
-      temp.data_offset = envp->data_offset;
-      temp.data_selector = envp->data_selector;
+      temp.__control_word &= ~(FE_ALL_EXCEPT | FE_TOWARDZERO);
+      temp.__control_word |= (envp->__control_word
+			      & (FE_ALL_EXCEPT | FE_TOWARDZERO));
+      temp.__status_word &= ~FE_ALL_EXCEPT;
+      temp.__status_word |= envp->__status_word & FE_ALL_EXCEPT;
+      temp.__eip = envp->__eip;
+      temp.__cs_selector = envp->__cs_selector;
+      temp.__opcode = envp->__opcode;
+      temp.__data_offset = envp->__data_offset;
+      temp.__data_selector = envp->__data_selector;
     }
 
   __asm__ ("fldenv %0" : : "m" (temp));