diff options
author | Matthias Kretz <m.kretz@gsi.de> | 2023-03-21 17:40:21 +0100 |
---|---|---|
committer | Matthias Kretz <m.kretz@gsi.de> | 2023-03-21 20:30:19 +0100 |
commit | fac64bf456cf56f0c6309d21286b7eaf170f668e (patch) | |
tree | 1b1127061b3a462a19d425d2f51686c025bcaa3a | |
parent | 403e48ef441b0502af46ad3598f699f4a1611791 (diff) | |
download | gcc-fac64bf456cf56f0c6309d21286b7eaf170f668e.zip gcc-fac64bf456cf56f0c6309d21286b7eaf170f668e.tar.gz gcc-fac64bf456cf56f0c6309d21286b7eaf170f668e.tar.bz2 |
libstdc++: Use more precise __RECIPROCAL_MATH__ macro
Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:
* include/experimental/bits/simd_x86.h
(_SimdImplX86::_S_divides): Replace test for __GCC_IEC_559 == 0
with __RECIPROCAL_MATH__.
-rw-r--r-- | libstdc++-v3/include/experimental/bits/simd_x86.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/experimental/bits/simd_x86.h b/libstdc++-v3/include/experimental/bits/simd_x86.h index 28ba344..2a3e74d 100644 --- a/libstdc++-v3/include/experimental/bits/simd_x86.h +++ b/libstdc++-v3/include/experimental/bits/simd_x86.h @@ -1469,7 +1469,7 @@ template <typename _Abi, typename> [&__xf, &__yf](auto __i) _GLIBCXX_SIMD_ALWAYS_INLINE_LAMBDA -> _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 |