opencv/cmake/checks/cpu_vsx.cpp

13 lines
211 B
C++
Raw Normal View History

2017-10-03 06:54:31 +08:00
# if defined(__VSX__)
# include <altivec.h>
# else
# error "VSX is not supported"
# endif
int main()
{
__vector float testF = vec_splats(0.f);
testF = vec_madd(testF, testF, testF);
return 0;
}