Files
zenml/venv/lib/python3.9/site-packages/numpy/distutils/checks/cpu_vsx4.c
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

15 lines
305 B
C

#ifndef __VSX__
#error "VSX is not supported"
#endif
#include <altivec.h>
typedef __vector unsigned int v_uint32x4;
int main(void)
{
v_uint32x4 v1 = (v_uint32x4){2, 4, 8, 16};
v_uint32x4 v2 = (v_uint32x4){2, 2, 2, 2};
v_uint32x4 v3 = vec_mod(v1, v2);
return (int)vec_extractm(v3);
}