mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
* sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Disable
exceptions. Use the updated env in fesetenv(). Add libm_hidden_def.
This commit is contained in:
parent
99e5e16c5c
commit
0012a8520b
@ -1,3 +1,9 @@
|
||||
2007-05-23 Steven Munroe <sjmunroe@us.ibm.com>
|
||||
|
||||
* sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Disable
|
||||
exceptions. Use the updated env in fesetenv().
|
||||
Add libm_hidden_def.
|
||||
|
||||
2007-01-23 Steven Munroe <sjmunroe@us.ibm.com>
|
||||
|
||||
[BZ #2749]
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* Store current floating-point environment and clear exceptions
|
||||
(soft-float edition).
|
||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2007 Free Software Foundation, Inc.
|
||||
Contributed by Aldy Hernandez <aldyh@redhat.com>, 2002.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@ -33,11 +33,12 @@ feholdexcept (fenv_t *envp)
|
||||
u.fenv = *envp;
|
||||
/* Clear everything except the rounding mode. */
|
||||
u.l[0] &= 0x3;
|
||||
|
||||
/* ?? Should we clear the disabled exceptions as well ?? */
|
||||
/* Disable exceptions */
|
||||
u.l[1] = FE_ALL_EXCEPT;
|
||||
|
||||
/* Put the new state in effect. */
|
||||
fesetenv (envp);
|
||||
fesetenv (&u.fenv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
libm_hidden_def (feholdexcept)
|
||||
|
Loading…
Reference in New Issue
Block a user