在 2026-10-22 06:40, Peter Damianov via Mingw-w64-public 写道:
From: Peter Damianov <[email protected]>

CRT_fp8.o and CRT_fp10.o select the x87 precision that _fpreset sets at
program startup and for fesetenv(FE_DFL_ENV): 53 and 64 bits.  Add
CRT_fp4.o for 24 bits (single precision), with a matching
__mingw_fe_dfl_env, so that GCC can link CRT_fp4.o, CRT_fp8.o and
CRT_fp10.o for -mpc32, -mpc64 and -mpc80.

Like CRT_fp8.o, it is only built for x86.

Add t_fesetenv_fp4, which runs t_fesetenv linked with CRT_fp4.o.

Signed-off-by: Peter Damianov <[email protected]>
---
  mingw-w64-crt/Makefile.am                |  7 +++-
  mingw-w64-crt/crt/CRT_fp4.c              | 47 ++++++++++++++++++++++++
  mingw-w64-crt/testcases/Makefile.am      |  2 +
  mingw-w64-crt/testcases/t_fesetenv_fp4.c |  3 ++
  4 files changed, 57 insertions(+), 2 deletions(-)
  create mode 100644 mingw-w64-crt/crt/CRT_fp4.c
  create mode 100644 mingw-w64-crt/testcases/t_fesetenv_fp4.c

This patch looks good to me. I have pushed it now.



--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to