Home GnuPG

SHA-1/SSSE3: Improve performance on large buffers
6fd0dd2a5f13Unpublished

Unpublished Commit ยท Learn More

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

Description

SHA-1/SSSE3: Improve performance on large buffers

* cipher/sha1-ssse3-amd64.S (RNBLKS): New.
(_gcry_sha1_transform_amd64_ssse3): Handle multiple input blocks, with
software pipelining of next data block processing.
* cipher/sha1.c [USE_SSSE3] (_gcry_sha1_transform_amd64_ssse3): Add
'nblks'.
(transform) [USE_SSSE3]: Pass nblks to assembly function.

Patch gives small improvement for large buffer processing, on Intel i5-4570
speed goes from 4.80 c/B to 4.61 c/B.

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

Details

Provenance
jukiviliAuthored on Dec 17 2013, 2:35 PM
Parents
rC50b8c8342d02: Add bulk processing for hash transform functions
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rC6fd0dd2a5f13: SHA-1/SSSE3: Improve performance on large buffers (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Dec 17 2013, 2:48 PM