mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 19:53:32 +08:00
Fix FP exception control.
This commit is contained in:
parent
3f7dcb2b0f
commit
21a2b1aeeb
@ -1,3 +1,8 @@
|
||||
2010-05-12 Andrew Stubbs <ams@codesourcery.com>
|
||||
|
||||
* sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
|
||||
exceptions. Return 0.
|
||||
|
||||
2010-05-07 Roland McGrath <roland@redhat.com>
|
||||
|
||||
* elf/ldconfig.c (main): Add a const.
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* Store current floating-point environment and clear exceptions.
|
||||
Copyright (C) 1997, 1998, 1999, 2000, 2005 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997, 1998, 1999, 2000, 2005, 2010
|
||||
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
|
||||
@ -29,10 +30,15 @@ feholdexcept (fenv_t *envp)
|
||||
_FPU_GETCW (temp);
|
||||
envp->__fpscr = temp;
|
||||
|
||||
/* Now set all exceptions to non-stop. */
|
||||
/* Clear the status flags. */
|
||||
temp &= ~FE_ALL_EXCEPT;
|
||||
|
||||
/* Now set all exceptions to non-stop. */
|
||||
temp &= ~(FE_ALL_EXCEPT << 5);
|
||||
|
||||
_FPU_SETCW (temp);
|
||||
|
||||
return 1;
|
||||
/* Success. */
|
||||
return 0;
|
||||
}
|
||||
libm_hidden_def (feholdexcept)
|
||||
|
Loading…
Reference in New Issue
Block a user