wg-backend-django/dell-env/lib/python3.11/site-packages/numpy/distutils/checks/cpu_vsx3.c

14 lines
250 B
C
Raw Normal View History

2023-10-30 03:40:43 -04:00
#ifndef __VSX__
#error "VSX is not supported"
#endif
#include <altivec.h>
typedef __vector unsigned int v_uint32x4;
int main(void)
{
v_uint32x4 z4 = (v_uint32x4){0, 0, 0, 0};
z4 = vec_absd(z4, z4);
return (int)vec_extract(z4, 0);
}