cpu_vsx.cpp 349 B

12345678910111213141516
  1. #if defined(__VSX__)
  2. #if defined(__PPC64__) && defined(__LITTLE_ENDIAN__)
  3. #include <altivec.h>
  4. #else
  5. #error "OpenCV only supports little-endian mode"
  6. #endif
  7. #else
  8. #error "VSX is not supported"
  9. #endif
  10. int main()
  11. {
  12. __vector float testF = vec_splats(0.f);
  13. testF = vec_madd(testF, testF, testF);
  14. return 0;
  15. }