Home GnuPG

twofish-amd64: do not use xchg instruction

Description

twofish-amd64: do not use xchg instruction

* cipher/twofish-amd64.S (g1g2_3): Swap ab and cd registers using
'movq' instructions instead of 'xchgq'.

Avoiding xchg instruction improves three block parallel performance
by ~3% on Intel Haswell.

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

Details

Provenance
jukiviliAuthored on Apr 15 2019, 9:09 PM
Parents
rC2ffc689d4757: Use FreeBSD's elf_aux_info for detecting ARM HW features
Branches
Unknown
Tags
Unknown