Skip to content

Commit

Permalink
Add a check of architecture to select simd probing implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jul 3, 2024
1 parent a7fdcef commit a0c0b88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blosc/shuffle.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ typedef enum {

/* Detect hardware and set function pointers to the best shuffle/unshuffle
implementations supported by the host processor. */
#if defined(SHUFFLE_AVX2_ENABLED) || defined(SHUFFLE_SSE2_ENABLED) /* Intel/i686 */
#if (defined(SHUFFLE_AVX2_ENABLED) || defined(SHUFFLE_SSE2_ENABLED)) && \
(defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)) /* Intel/i686 */

#if defined(HAVE_CPU_FEAT_INTRIN)
static blosc_cpu_features blosc_get_cpu_features(void) {
Expand Down

0 comments on commit a0c0b88

Please sign in to comment.