Use M128_CAST and CONST_M128_CAST for Clang

Also see http://bugs.llvm.org/show_bug.cgi?id=20670
pull/552/head
Jeffrey Walton 2017-12-26 11:20:18 -05:00
parent 8e916e7bac
commit 66da740ad3
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ void Rijndael_UncheckedSetKeyRev_AESNI(word32 *key, unsigned int rounds)
unsigned int i, j;
__m128i temp;
vec_swap(*(__m128i *)(key), *(__m128i *)(key+4*rounds));
vec_swap(*M128_CAST(key), *M128_CAST(key+4*rounds));
for (i = 4, j = 4*rounds-4; i < j; i += 4, j -= 4)
{