summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorYuriy Chernyshov <thegeorg@yandex-team.com>2024-03-04 16:59:57 (GMT)
committerGitHub <noreply@github.com>2024-03-04 16:59:57 (GMT)
commit9b9e819b5116302cb4e471763feb2764eb17dde8 (patch)
treed297c4014a69f744a02eee1c4b15a21e7592dba6 /Modules
parent0adfa8482d369899e9963206a3307f423309e10c (diff)
downloadcpython-9b9e819b5116302cb4e471763feb2764eb17dde8.zip
cpython-9b9e819b5116302cb4e471763feb2764eb17dde8.tar.gz
cpython-9b9e819b5116302cb4e471763feb2764eb17dde8.tar.bz2
gh-116116: Backport blake2 change to fix building with clang-cl on windows-i686 (GH-116117)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_blake2/impl/blake2b.c2
-rw-r--r--Modules/_blake2/impl/blake2s.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_blake2/impl/blake2b.c b/Modules/_blake2/impl/blake2b.c
index c1068e8..cef2283 100644
--- a/Modules/_blake2/impl/blake2b.c
+++ b/Modules/_blake2/impl/blake2b.c
@@ -27,7 +27,7 @@
#if defined(HAVE_SSE2)
#include <emmintrin.h>
// MSVC only defines _mm_set_epi64x for x86_64...
-#if defined(_MSC_VER) && !defined(_M_X64)
+#if defined(_MSC_VER) && !defined(_M_X64) && !defined(__clang__)
static inline __m128i _mm_set_epi64x( const uint64_t u1, const uint64_t u0 )
{
return _mm_set_epi32( u1 >> 32, u1, u0 >> 32, u0 );
diff --git a/Modules/_blake2/impl/blake2s.c b/Modules/_blake2/impl/blake2s.c
index 4751468..e7f63fd 100644
--- a/Modules/_blake2/impl/blake2s.c
+++ b/Modules/_blake2/impl/blake2s.c
@@ -27,7 +27,7 @@
#if defined(HAVE_SSE2)
#include <emmintrin.h>
// MSVC only defines _mm_set_epi64x for x86_64...
-#if defined(_MSC_VER) && !defined(_M_X64)
+#if defined(_MSC_VER) && !defined(_M_X64) && !defined(__clang__)
static inline __m128i _mm_set_epi64x( const uint64_t u1, const uint64_t u0 )
{
return _mm_set_epi32( u1 >> 32, u1, u0 >> 32, u0 );