Skip to content

Commit

Permalink
Backport PR python#42 to fix building with clang-cl on windows-i686
Browse files Browse the repository at this point in the history
  • Loading branch information
georgthegreat committed Feb 29, 2024
1 parent bea2795 commit 55c206a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/_blake2/impl/blake2b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion Modules/_blake2/impl/blake2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 55c206a

Please sign in to comment.