camellia-aesni-avx-amd64: Move register clearing to assembly functions
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 1 Sep 2013 13:50:55 +0000 (16:50 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sun, 1 Sep 2013 13:50:55 +0000 (16:50 +0300)
commit8b735cb563dff7aafbf8a970972522b5621e665c
treeb4efa5afde49d5ca9d0659b8f98165f6104874f5
parentd12828cd821a4b4428eae19de5aee02cf536e536
camellia-aesni-avx-amd64: Move register clearing to assembly functions

* cipher/camellia-aesni-avx-amd64.S (_gcry_camellia_aesni_avx_ctr_enc)
(_gcry_camellia_aesni_avx_cbc_dec)
(_gcry_camellia_aesni_avx_cfb_dec): Add 'vzeroupper' at head and
'vzeroall' at tail.
* cipher/camellia-glue.c (_gcry_serpent_ctr_enc, _gcry_serpent_cbc_dec)
(_gcry_serpent_avx2_cfb_dec) [USE_AESNI_AVX]: Remove register clearing.
--

Patch moves register clearing with 'vzeroall' to assembly functions and
adds missing 'vzeroupper' instructions at head of assembly functions.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/camellia-aesni-avx-amd64.S
cipher/camellia-glue.c