mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
RISC-V: Fix rounding save/restore bug.
* sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv): Fix rounding save-restore bug. Fixes about a hundred off-by-ULP failures in the math testsuite.
This commit is contained in:
parent
ea705eb5ec
commit
bf41818787
@ -1,3 +1,8 @@
|
||||
2018-08-03 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
|
||||
Fix rounding save-restore bug.
|
||||
|
||||
2018-08-03 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
|
||||
|
@ -72,8 +72,8 @@ libc_fesetround_riscv (int round)
|
||||
static __always_inline void
|
||||
libc_feholdexcept_setround_riscv (fenv_t *envp, int round)
|
||||
{
|
||||
libc_fesetround_riscv (round);
|
||||
libc_feholdexcept_riscv (envp);
|
||||
libc_fesetround_riscv (round);
|
||||
}
|
||||
|
||||
#define libc_feholdexcept_setround libc_feholdexcept_setround_riscv
|
||||
|
Loading…
Reference in New Issue
Block a user