在 2026-7-10 07:15, Jacek Caban via Mingw-w64-public 写道:
--- mingw-w64-crt/math/fabsf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)diff --git a/mingw-w64-crt/math/fabsf.c b/mingw-w64-crt/math/fabsf.c index e7e9d8fa7..702b9d02c 100644 --- a/mingw-w64-crt/math/fabsf.c +++ b/mingw-w64-crt/math/fabsf.c @@ -8,11 +8,11 @@ float fabsf (float x); float fabsf (float x) { -#if defined(__x86_64__) || defined(_AMD64_) || defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) - return __builtin_fabsf (x); -#elif defined(__i386__) || defined(_X86_) +#if defined(__i386__) || defined(_X86_) float res = 0.0F; asm volatile ("fabs;" : "=t" (res) : "0" (x)); return res; -#endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) */ +#else + return __builtin_fabsf(x); +#endif }
LGTM. Thanks. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
