aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/block_header_decoder.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2014-08-03 21:08:12 +0300
committerLasse Collin <lasse.collin@tukaani.org>2014-08-03 21:08:12 +0300
commita9477d1e0c6fd0e47e637d051e7b9e2a5d9af517 (patch)
tree2775facf874762fff0d2f2fafacbbe2b70f07327 /src/liblzma/common/block_header_decoder.c
parentliblzma: SHA-256: Remove the GCC #pragma that became unneeded. (diff)
downloadxz-a9477d1e0c6fd0e47e637d051e7b9e2a5d9af517.tar.xz
liblzma: SHA-256: Optimize the way rotations are done.
This looks weird because the rotations become sequential, but it helps quite a bit on both 32-bit and 64-bit x86: - It requires fewer instructions on two-operand instruction sets like x86. - It requires one register less which matters especially on 32-bit x86. I hope this doesn't hurt other archs. I didn't invent this idea myself, but I don't remember where I saw it first.
Diffstat (limited to 'src/liblzma/common/block_header_decoder.c')
0 files changed, 0 insertions, 0 deletions