mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-26 23:41:47 +01:00
15 lines
329 B
C
15 lines
329 B
C
|
#ifdef _MSC_VER
|
||
|
#include <Intrin.h>
|
||
|
#endif
|
||
|
#include <arm_neon.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
float16x8_t vhp = vdupq_n_f16((float16_t)-1);
|
||
|
float16x4_t vlhp = vdup_n_f16((float16_t)-1);
|
||
|
|
||
|
int ret = (int)vgetq_lane_f16(vabdq_f16(vhp, vhp), 0);
|
||
|
ret += (int)vget_lane_f16(vabd_f16(vlhp, vlhp), 0);
|
||
|
return ret;
|
||
|
}
|