Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerPC: Check for VSX and power8 arch for enabling altivec implementations #619

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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