Commit 8e3f5bc6 authored by Marc Marí's avatar Marc Marí
Browse files

Simplify blendZero for ARM64

parent 5d755e7f
......@@ -427,7 +427,7 @@ static inline fvec4 blend(fvec4 v1, fvec4 v2, ivec4 mask) {
}
static inline fvec4 blendZero(fvec4 v, ivec4 mask) {
return blend(0.0f, v, mask);
return vreinterpretq_f32_s32(vandq_s32(vreinterpretq_s32_f32(v), mask));
}
static inline ivec4 blendZero(ivec4 v, ivec4 mask) {
......
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