Do not redefine _mm_cvtsi64_si128 when building with clang-cl
Fixes the following warnings/errors when building for x86 with clang: ``` 1>../..\bitunpack.c(160,23): error : redefinition of '_mm_cvtsi64_si128' 1>C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\Llvm\lib\clang\15.0.1\include\emmintrin.h(3298,46): message : previous definition is here ```
This commit is contained in:
@ -156,7 +156,7 @@ size_t bitnfunpack64( unsigned char *__restrict in, size_t n, uint64_t *__restri
|
||||
#define mm256_maskz_expand_epi32(_m_,_v_) _mm256_maskz_expand_epi32(_m_,_v_)
|
||||
#define mm256_maskz_loadu_epi32( _m_,_v_) _mm256_maskz_loadu_epi32( _m_,_v_)
|
||||
#else
|
||||
#if !(defined(_M_X64) || defined(__amd64__)) && (defined(__i386__) || defined(_M_IX86))
|
||||
#if !(defined(_M_X64) || defined(__amd64__)) && (defined(__i386__) || defined(_M_IX86)) && !defined(__clang__)
|
||||
static inline __m128i _mm_cvtsi64_si128(__int64 a) { return _mm_loadl_epi64((__m128i*)&a); }
|
||||
#endif
|
||||
static ALIGNED(unsigned char, permv[256][8], 32) = {
|
||||
|
||||
Reference in New Issue
Block a user