Home GnuPG

twofish-avx2: de-unroll round function

Description

twofish-avx2: de-unroll round function

* cipher/twofish-avx2-amd64.S (__twofish_enc_blk16)
(__twofish_dec_blk16): Use loop structure instead of unrolling.

De-unrolling reduces code-size significantly and gives
small (<1%) increase in speed (tested on zen4, tiger-lake).

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

Details

Provenance
jukiviliAuthored on May 29 2023, 7:59 PM
Parents
rCce95b6ec3554: serpent: add x86/AVX512 implementation
Branches
Unknown
Tags
Unknown