fix: replace vm*vq_u8 by vm*vq_u32 for better performance under some systems.

This commit is contained in:
Daniel Lemire
2024-05-01 14:53:48 -04:00
parent 799d8e3fc9
commit 52406402ed
+1 -1
View File
@@ -134,7 +134,7 @@ namespace {
tmp = vpaddq_u8(tmp, tmp);
return vgetq_lane_u16(vreinterpretq_u16_u8(tmp), 0);
}
simdjson_inline bool any() const { return vmaxvq_u8(*this) != 0; }
simdjson_inline bool any() const { return vmaxvq_u32(vreinterpretq_u32_u8(*this)) != 0; }
};
// Unsigned bytes