From 337d9e4787a20e8277c7ce638786cdaa2ec3f8ca Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 28 Nov 2013 22:36:41 +0100 Subject: ghash-pclmulqdq: rework implementation to allow both GCC and Clang to generate fast code --- src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h') 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; }; -- cgit v1.2.3