Altivec fixes for Darwin: do not use unsupported VSX insns

This commit is contained in:
Sergey Fedorov
2023-01-12 16:33:33 +00:00
committed by Antonio Sánchez
parent 6156797016
commit 4d05765345
6 changed files with 43 additions and 38 deletions

View File

@@ -352,10 +352,10 @@
#endif
} // end extern "C"
#elif defined __VSX__
#elif defined(__VSX__) && !defined(__APPLE__)
#define EIGEN_VECTORIZE
#define EIGEN_VECTORIZE_VSX
#define EIGEN_VECTORIZE_VSX 1
#include <altivec.h>
// We need to #undef all these ugly tokens defined in <altivec.h>
// => use __vector instead of vector