Skip to content

Commit

Permalink
[BZ #3427]
Browse files Browse the repository at this point in the history
* sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions 
in *envp.
2007-05-09  Jakub Jelinek  <jakub@redhat.com>

	[BZ #3427]
	* sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
	in *envp.
  • Loading branch information
Jakub Jelinek committed May 10, 2007
1 parent df7b6fe commit cf6b098
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2007-05-09 Jakub Jelinek <jakub@redhat.com>

[BZ #3427]
* sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Don't clear exceptions
in *envp.

2007-05-07 Ulrich Drepper <drepper@redhat.com>

[BZ #4403]
7 changes: 4 additions & 3 deletions sysdeps/s390/fpu/feholdexcpt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Store current floating-point environment and clear exceptions.
Copyright (C) 2000, 2005 Free Software Foundation, Inc.
Copyright (C) 2000, 2005, 2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Denis Joseph Barrow (djbarrow@de.ibm.com).
@@ -23,13 +23,14 @@

int feholdexcept (fenv_t *envp)
{
fexcept_t fpc;
/* Store the environment. */
fegetenv (envp);
/* Clear the current sticky bits as more than one exception
may be generated. */
envp->fpc &= ~(FPC_FLAGS_MASK | FPC_DXC_MASK);
fpc = envp->fpc & ~(FPC_FLAGS_MASK | FPC_DXC_MASK);
/* Hold from generating fpu exceptions temporarily. */
_FPU_SETCW ((envp->fpc & ~(FE_ALL_EXCEPT << FPC_EXCEPTION_MASK_SHIFT)));
_FPU_SETCW ((fpc & ~(FE_ALL_EXCEPT << FPC_EXCEPTION_MASK_SHIFT)));
return 0;
}
libm_hidden_def (feholdexcept)

0 comments on commit cf6b098

Please sign in to comment.