Skip to content

Commit

Permalink
Check that AltiVec is enabled before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Nov 20, 2024
1 parent 8029be8 commit 8474293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/pffft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ namespace {
/*
* Altivec support macros
*/
#if defined(__ppc__) || defined(__ppc64__) || defined(__powerpc__) || defined(__powerpc64__)
#if (defined(__ppc__) || defined(__ppc64__) || defined(__powerpc__) || defined(__powerpc64__)) \
&& (defined(__VEC__) || defined(__ALTIVEC__))
#include <altivec.h>
using v4sf = vector float;
constexpr uint SimdSize{4};
Expand Down

0 comments on commit 8474293

Please sign in to comment.