diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-28 22:36:41 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-28 22:36:41 +0100 |
commit | 337d9e4787a20e8277c7ce638786cdaa2ec3f8ca (patch) | |
tree | 4f013b2e1897bc03a4f03035ade046d8d5b77154 /src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h | |
parent | 54c3e6adf04b0a5ef4d13c2306ce5a380fc75205 (diff) | |
download | fastd-337d9e4787a20e8277c7ce638786cdaa2ec3f8ca.tar fastd-337d9e4787a20e8277c7ce638786cdaa2ec3f8ca.zip |
ghash-pclmulqdq: rework implementation to allow both GCC and Clang to generate fast code
Diffstat (limited to 'src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h')
-rw-r--r-- | src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h index f2bc916..c2645f8 100644 --- a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h +++ b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h @@ -27,17 +27,8 @@ #include "../../../../crypto.h" -typedef union _v2di { - uint64_t v __attribute__((vector_size(16))); - char v16 __attribute__((vector_size(16))); - long long int vll __attribute__((vector_size(16))); - uint64_t e[2]; - fastd_block128_t block; -} v2di; - - struct fastd_mac_state { - v2di H; + fastd_block128_t H; }; |