projektAI/venv/Lib/site-packages/numpy/distutils/checks/cpu_neon_fp16.c

12 lines
251 B
C
Raw Normal View History

2021-06-06 22:13:05 +02:00
#ifdef _MSC_VER
#include <Intrin.h>
#endif
#include <arm_neon.h>
int main(void)
{
short z4[] = {0, 0, 0, 0, 0, 0, 0, 0};
float32x4_t v_z4 = vcvt_f32_f16((float16x4_t)vld1_s16((const short*)z4));
return (int)vgetq_lane_f32(v_z4, 0);
}