Home GnuPG

Convert SHA-1 SSSE3 implementation from mixed asm&C to pure asm
d2b853246c2eUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Convert SHA-1 SSSE3 implementation from mixed asm&C to pure asm

* cipher/Makefile.am: Change 'sha1-ssse3-amd64.c' to
'sha1-ssse3-amd64.S'.
* cipher/sha1-ssse3-amd64.c: Remove.
* cipher/sha1-ssse3-amd64.S: New.

Mixed C&asm implementation appears to trigger GCC bugs easily. Therefore
convert SSSE3 implementation to pure assembly for safety.

Benchmark also show smallish speed improvement.

cpu C&asm asm
Intel i5-4570 5.22 c/B 5.09 c/B
Intel i5-2450M 7.24 c/B 7.00 c/B

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Dec 13 2013, 8:07 PM
Parents
rCbe2238f68abc: SHA-1: Add SSSE3 implementation
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rCd2b853246c2e: Convert SHA-1 SSSE3 implementation from mixed asm&C to pure asm (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Dec 13 2013, 9:40 PM