/ lib / numpy / distutils / checks / cpu_vsx2.c
cpu_vsx2.c
 1  #ifndef __VSX__
 2      #error "VSX is not supported"
 3  #endif
 4  #include <altivec.h>
 5  
 6  typedef __vector unsigned long long v_uint64x2;
 7  
 8  int main(void)
 9  {
10      v_uint64x2 z2 = (v_uint64x2){0, 0};
11      z2 = (v_uint64x2)vec_cmpeq(z2, z2);
12      return (int)vec_extract(z2, 0);
13  }