mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 22:40:17 +08:00
474a0dac49
- add infrastructure support for Power9/VSX3 - fix missing VSX flags on GCC4.9 and CLANG4(#13210, #13222) - fix disable VSX optimzation on GCC by using flag ENABLE_VSX - flag ENABLE_VSX is deprecated now, use CPU_BASELINE, CPU_DISPATCH instead - add VSX3 to arithmetic dispatchable flags
17 lines
349 B
C++
17 lines
349 B
C++
#if defined(__VSX__)
|
|
#if defined(__PPC64__) && defined(__LITTLE_ENDIAN__)
|
|
#include <altivec.h>
|
|
#else
|
|
#error "OpenCV only supports little-endian mode"
|
|
#endif
|
|
#else
|
|
#error "VSX is not supported"
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
__vector float testF = vec_splats(0.f);
|
|
testF = vec_madd(testF, testF, testF);
|
|
return 0;
|
|
}
|