glibc/sysdeps/x86/fpu
Adhemerval Zanella 44ccc2465c math: x86 trunc traps when FE_INEXACT is enabled (BZ 31603)
The implementations of trunc 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>
2024-04-04 14:29:28 -03:00
..
bits Refer to C23 in place of C2X in glibc 2024-02-01 11:02:01 +00:00
finclude
e_sqrtf128.c
e_sqrtl.c
fenv_private.h
fix-fp-int-compare-invalid.h
Makefile
math_private.h
math-barriers.h
nan-pseudo-number.h
powl_helper.c
s_ceill.c math: x86 ceill traps when FE_INEXACT is enabled (BZ 31600) 2024-04-04 14:29:28 -03:00
s_ffma.c
s_floorl.c math: x86 floor traps when FE_INEXACT is enabled (BZ 31601) 2024-04-04 14:29:28 -03:00
s_fpclassifyl.c
s_isnanl.c
s_nearestint_387_template.c math: x86 ceill traps when FE_INEXACT is enabled (BZ 31600) 2024-04-04 14:29:28 -03:00
s_sincosf_data.c
s_truncl.c math: x86 trunc traps when FE_INEXACT is enabled (BZ 31603) 2024-04-04 14:29:28 -03:00
sfp-machine.h
sincosf_poly.h
test-fenv-clear-sse.c
test-fenv-sse-2.c
test-fenv-sse.c
test-fenv-x87.c
test-flt-eval-method-387.c
test-flt-eval-method-sse.c
test-math-vector-sincos.h