Skip to content

Commit

Permalink
rely on __SSSE3__ macro rather that on architecture macros
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 authored and FrancescAlted committed Feb 7, 2024
1 parent f018376 commit 8c519b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 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 8c519b4

Please sign in to comment.