glibc/sysdeps/x86/fpu
Adhemerval Zanella 47a9eeb9ba i686: Do not raise exception traps on fesetexcept (BZ 30989)
According to ISO C23 (7.6.4.4), fesetexcept is supposed to set
floating-point exception flags without raising a trap (unlike
feraiseexcept, which is supposed to raise a trap if feenableexcept
was called with the appropriate argument).

The flags can be set in the 387 unit or in the SSE unit.  To set
a flag, it is sufficient to do it in the SSE unit, because that is
guaranteed to not trap.  However, on i386 CPUs that have only a
387 unit, set the flags in the 387, as long as this cannot trap.

Checked on i686-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2023-12-19 15:12:38 -03:00
..
bits Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
finclude Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
e_sqrtf128.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
e_sqrtl.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
fenv_private.h Split fenv_private.h out of math_private.h more consistently. 2018-08-28 20:48:49 +00:00
fix-fp-int-compare-invalid.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile Add float128 support for x86_64, x86. 2017-06-26 22:02:24 +00:00
math_private.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
math-barriers.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
nan-pseudo-number.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
powl_helper.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
s_ffma.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
s_fpclassifyl.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
s_isnanl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_sincosf_data.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
sfp-machine.h math: x86: Use prefix for FP_INIT_ROUNDMODE 2022-09-05 10:54:41 -03:00
sincosf_poly.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-fenv-clear-sse.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-fenv-sse-2.c i686: Do not raise exception traps on fesetexcept (BZ 30989) 2023-12-19 15:12:38 -03:00
test-fenv-sse.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-fenv-x87.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
test-flt-eval-method-387.c Fix x86_64 -mfpmath=387 float_t, double_t (bug 20787). 2016-11-23 17:56:31 +00:00
test-flt-eval-method-sse.c Fix x86_64 -mfpmath=387 float_t, double_t (bug 20787). 2016-11-23 17:56:31 +00:00
test-math-vector-sincos.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00