twofish-amd64: do not use xchg instruction
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Mon, 15 Apr 2019 19:09:24 +0000 (22:09 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Mon, 15 Apr 2019 19:09:32 +0000 (22:09 +0300)
commit0903b215ef5a18332b740a24e6e2bfbed9e1d97b
tree4b3a4a557563405f43061fe10106ccc3af049ca6
parent2ffc689d4757f31f1e2c4961b94b0b0c8dc302b7
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>
cipher/twofish-amd64.S