From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7857) id 8D47D3858C66; Tue, 21 Mar 2023 19:39:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D47D3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679427561; bh=kMcVSKrY1uKBbmhqd80HlwjPOSHng9L9DpoCQN1u6tY=; h=From:To:Subject:Date:From; b=JrMefqz3sYlBqonYe4MbOEQj31aYX9n3SPpVYGlTnr9/8ID8FatFbA74PMtaIlkZ7 guEGRsaRP2empb/gAm8CzIGpbGCCl2Q3t5MYul6vbzEulfOVnKuTYBx5DzwHlJCAoM PRYRRl03vNIjJNEd8ei04Oy35jAAoyGhChnVlXXY= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Matthias Kretz To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-9306] libstdc++: Use more precise __RECIPROCAL_MATH__ macro X-Act-Checkin: gcc X-Git-Author: Matthias Kretz X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 8d91c9dd93861c8ede2e150c60a64c591efa6e25 X-Git-Newrev: c152c936123c0fd854b63b6cf6964aa3c96086b4 Message-Id: <20230321193921.8D47D3858C66@sourceware.org> Date: Tue, 21 Mar 2023 19:39:21 +0000 (GMT) List-Id: https://gcc.gnu.org/g:c152c936123c0fd854b63b6cf6964aa3c96086b4 commit r12-9306-gc152c936123c0fd854b63b6cf6964aa3c96086b4 Author: Matthias Kretz Date: Tue Mar 21 17:40:21 2023 +0100 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: --- 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 53e886c5136..35702464608 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