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 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
e_sqrtf128.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
e_sqrtl.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08: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 2024-01-01 10:53:40 -08: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 2024-01-01 10:53:40 -08:00
math-barriers.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
nan-pseudo-number.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
powl_helper.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
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 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
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 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
s_isnanl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
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 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
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 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 2024-01-01 10:53:40 -08:00
test-fenv-clear-sse.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-fenv-sse-2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-fenv-sse.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-fenv-x87.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08: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 2024-01-01 10:53:40 -08:00