Skip to content

Commit

Permalink
Fix for SSSE3 instructions from Blosc/c-blosc2#586
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Feb 7, 2024
1 parent 1538c91 commit 6d99524
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/c-blosc2/plugins/filters/bytedelta/bytedelta.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@
#include <stdint.h>
#include <stdio.h>

#if defined __i386__ || defined _M_IX86 || defined __x86_64__ || defined _M_X64
/* Define the __SSSE3__ symbol if compiling with Visual C++ and
targeting the minimum architecture level.
*/
#if !defined(__SSSE3__) && defined(_MSC_VER) && \
(defined(_M_X64) || (defined(_M_IX86) && _M_IX86_FP >= 2))
#define __SSSE3__
#endif

#if defined(__SSSE3__)
// SSSE3 code path for x64/x64
#define CPU_HAS_SIMD 1
#include <emmintrin.h>
Expand Down

0 comments on commit 6d99524

Please sign in to comment.