workaround for clang-5

This commit is contained in:
pinterior 2019-02-02 16:11:32 +09:00
parent 8c260955fd
commit ace3e36df8
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
#include "multi2_ymm.h"
#include "multi2_xmm.h"
#if defined(__GNUC__)
#if defined(__GNUC__) || defined(__clang__)
# define MULTI2_ALWAYS_INLINE __attribute__((always_inline))
# define MULTI2_LIKELY(x) __builtin_expect(!!(x), 1)
#else

View File

@ -166,9 +166,9 @@ inline std::pair<block<x86::xmm>, cbc_state> block<x86::xmm>::cbc_post_decrypt(c
__m128i c1 = c.right.value();
#if defined(__SSSE3__)
int s = _MM_SHUFFLE(1, 0, 2, 3);
const int s = _MM_SHUFFLE(1, 0, 2, 3);
#else
int s = _MM_SHUFFLE(2, 1, 0, 3);
const int s = _MM_SHUFFLE(2, 1, 0, 3);
#endif
__m128i b0 = _mm_shuffle_epi32(c0, s); // 2 0 1 3 / 2 1 0 3
__m128i b1 = _mm_shuffle_epi32(c1, s);