Commit 15a039ab authored by Marc Marí's avatar Marc Marí
Browse files

Simplify vec4 any for ARM64

parent bd333a1b
......@@ -382,7 +382,11 @@ static inline ivec4 abs(const ivec4& v) {
}
static inline bool any(const ivec4& v) {
#ifdef __ARM64__
return (vmaxvq_u32(vreinterpretq_u32_s32(v)) != 0);
#else
return (vgetq_lane_s32(v, 0) != 0 || vgetq_lane_s32(v, 1) != 0 || vgetq_lane_s32(v, 2) != 0 || vgetq_lane_s32(v, 3) != 0);
#endif
}
// Mathematical operators involving a scalar and a vector.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment