From: Matthias Kretz Date: Tue, 21 Mar 2023 16:40:21 +0000 (+0100) Subject: libstdc++: Use more precise __RECIPROCAL_MATH__ macro X-Git-Tag: releases/gcc-12.3.0~210 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c152c936123c0fd854b63b6cf6964aa3c96086b4;p=thirdparty%2Fgcc.git libstdc++: Use more precise __RECIPROCAL_MATH__ macro Signed-off-by: Matthias Kretz libstdc++-v3/ChangeLog: * include/experimental/bits/simd_x86.h (_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0 with __RECIPROCAL_MATH__. (cherry picked from commit fac64bf456cf56f0c6309d21286b7eaf170f668e) --- diff --git a/libstdc++-v3/include/experimental/bits/simd_x86.h b/libstdc++-v3/include/experimental/bits/simd_x86.h index 53e886c51364..357024646080 100644 --- a/libstdc++-v3/include/experimental/bits/simd_x86.h +++ b/libstdc++-v3/include/experimental/bits/simd_x86.h @@ -1422,7 +1422,7 @@ template }, [&__xf, &__yf](auto __i) -> _SimdWrapper<_Float, __n_intermediate> { -#if __GCC_IEC_559 == 0 +#if __RECIPROCAL_MATH__ // If -freciprocal-math is active, using the `/` operator is // incorrect because it may be translated to an imprecise // multiplication with reciprocal. We need to use inline