Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | math: x86 ceill traps when FE_INEXACT is enabled (BZ 31600) | Adhemerval Zanella | 2024-04-04 | 1 | -0/+25 |
The implementations of ceil functions using x87 floating point (i386 and x86_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> |