public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6792] libstdc++: Use more precise __RECIPROCAL_MATH__ macro
@ 2023-03-21 19:31 Matthias Kretz
  0 siblings, 0 replies; only message in thread
From: Matthias Kretz @ 2023-03-21 19:31 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:fac64bf456cf56f0c6309d21286b7eaf170f668e

commit r13-6792-gfac64bf456cf56f0c6309d21286b7eaf170f668e
Author: Matthias Kretz <m.kretz@gsi.de>
Date:   Tue Mar 21 17:40:21 2023 +0100

    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__.

Diff:
---
 libstdc++-v3/include/experimental/bits/simd_x86.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/experimental/bits/simd_x86.h b/libstdc++-v3/include/experimental/bits/simd_x86.h
index 28ba344c2b2..2a3e74d9119 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-21 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 19:31 [gcc r13-6792] libstdc++: Use more precise __RECIPROCAL_MATH__ macro Matthias Kretz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).