Skip to content

Conversation

arpadpanyik-arm
Copy link
Contributor

This is a follow-up PR of #4418.

Revert a branch optimization that was based on an incorrect assumption in the AArch64 part of ZSTD_decodeSequence. In extreme cases the existing implementation could lead to data corruption. Related discussion (measurements included): #4418 (comment)

Insert an UNLIKELY hint to guide the compilers toward generating more efficient machine code.

Remove the 32-bit code paths from the AArch64 only sections of ZSTD_decodeSequence.

Revert a branch optimization that was based on an incorrect
assumption in the AArch64 part of ZSTD_decodeSequence. In extreme
cases the existing implementation could lead to data corruption.

Insert an UNLIKELY hint to guide the compilers toward generating more
efficient machine code.
Remove the 32-bit code paths from the AArch64 only sections of
ZSTD_decodeSequence.
@meta-cla meta-cla bot added the CLA Signed label Oct 8, 2025
@Cyan4973 Cyan4973 self-assigned this Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants