Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | math: x86 floor traps when FE_INEXACT is enabled (BZ 31601) | Adhemerval Zanella | 2024-04-04 | 1 | -0/+67 |
The implementations of floor functions using x87 floating point (i386 and 86_64 long double only) traps when FE_INEXACT is enabled. Although this is a GNU extension outside the scope of the C standard, other architectures that also support traps do not show this behavior. The fix moves the implementation to a common one that holds any exceptions with a 'fnclex' (libc_feholdexcept_setround_387). Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: H.J. Lu <hjl.tools@gmail.com> |