DoubangoTelecom / compv

Insanely fast Open Source Computer Vision library for ARM and x86 devices (Up to #50 times faster than OpenCV)
https://doubango.org
GNU General Public License v3.0
189 stars 39 forks source link

Change COMPV_ARM_NEON_NEQ_ZEROQ to use single instruction (instead of 2) on ARM64 #173

Closed DoubangoTelecom closed 4 years ago

DoubangoTelecom commented 4 years ago
#   define COMPV_ARM_NEON_NEQ_ZEROQ(vec) (vmaxvq_u32((usint32x4_t)(vec))

instead of

#   define COMPV_ARM_NEON_NEQ_ZEROQ(vec)    (vgetq_lane_u64((uint64x2_t)(vec), 0) || vgetq_lane_u64((uint64x2_t)(vec), 1))