Skip to content

Commit

Permalink
fix: replace vm*vq_u8 by vm*vq_u32 for better performance under some …
Browse files Browse the repository at this point in the history
…systems.
  • Loading branch information
lemire committed May 1, 2024
1 parent 799d8e3 commit 5240640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/simdjson/arm64/simd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5240640

Please sign in to comment.