Skip to content

Commit

Permalink
Check for VSX and power8 arch for enabling altivec implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 authored and FrancescAlted committed Jun 14, 2024
1 parent fb5be70 commit 8f8d931
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blosc/bitshuffle-altivec.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "bitshuffle-generic.h"

/* Make sure ALTIVEC is available for the compilation target and compiler. */
#if defined(__ALTIVEC__)
#if defined(__ALTIVEC__) && defined(__VSX__) && defined(_ARCH_PWR8)

#include "transpose-altivec.h"

Expand Down
2 changes: 1 addition & 1 deletion blosc/shuffle-altivec.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "shuffle-generic.h"

/* Make sure ALTIVEC is available for the compilation target and compiler. */
#if defined(__ALTIVEC__)
#if defined(__ALTIVEC__) && defined(__VSX__) && defined(_ARCH_PWR8)

#include "transpose-altivec.h"

Expand Down
2 changes: 1 addition & 1 deletion blosc/shuffle.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define SHUFFLE_USE_SSE2
#endif

#if defined(SHUFFLE_ALTIVEC_ENABLED) && defined(__ALTIVEC__)
#if defined(SHUFFLE_ALTIVEC_ENABLED) && defined(__ALTIVEC__) && defined(__VSX__) && defined(_ARCH_PWR8)
#define SHUFFLE_USE_ALTIVEC
#endif

Expand Down

0 comments on commit 8f8d931

Please sign in to comment.