Skip to content

Commit 9b9e819

Browse files
gh-116116: Backport blake2 change to fix building with clang-cl on windows-i686 (GH-116117)
1 parent 0adfa84 commit 9b9e819

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Backport ``libb2``'s PR #42 to fix compiling CPython on 32-bit Windows
2+
with ``clang-cl``.

Misc/sbom.spdx.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_blake2/impl/blake2b.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#if defined(HAVE_SSE2)
2828
#include <emmintrin.h>
2929
// MSVC only defines _mm_set_epi64x for x86_64...
30-
#if defined(_MSC_VER) && !defined(_M_X64)
30+
#if defined(_MSC_VER) && !defined(_M_X64) && !defined(__clang__)
3131
static inline __m128i _mm_set_epi64x( const uint64_t u1, const uint64_t u0 )
3232
{
3333
return _mm_set_epi32( u1 >> 32, u1, u0 >> 32, u0 );

Modules/_blake2/impl/blake2s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#if defined(HAVE_SSE2)
2828
#include <emmintrin.h>
2929
// MSVC only defines _mm_set_epi64x for x86_64...
30-
#if defined(_MSC_VER) && !defined(_M_X64)
30+
#if defined(_MSC_VER) && !defined(_M_X64) && !defined(__clang__)
3131
static inline __m128i _mm_set_epi64x( const uint64_t u1, const uint64_t u0 )
3232
{
3333
return _mm_set_epi32( u1 >> 32, u1, u0 >> 32, u0 );

0 commit comments

Comments
 (0)