Fix assert in Debug builds
This was copy/paste from the template functionpull/548/head
parent
14e326482c
commit
a7fec9c0f6
|
|
@ -492,7 +492,6 @@ inline __m128i RotateRight64(const __m128i& val)
|
|||
template <>
|
||||
inline __m128i RotateLeft64<8>(const __m128i& val)
|
||||
{
|
||||
CRYPTOPP_ASSERT(R < 64);
|
||||
const __m128i mask = _mm_set_epi8(14,13,12,11, 10,9,8,15, 6,5,4,3, 2,1,0,7);
|
||||
return _mm_shuffle_epi8(val, mask);
|
||||
}
|
||||
|
|
@ -501,7 +500,6 @@ inline __m128i RotateLeft64<8>(const __m128i& val)
|
|||
template <>
|
||||
inline __m128i RotateRight64<8>(const __m128i& val)
|
||||
{
|
||||
CRYPTOPP_ASSERT(R < 64);
|
||||
const __m128i mask = _mm_set_epi8(8,15,14,13, 12,11,10,9, 0,7,6,5, 4,3,2,1);
|
||||
return _mm_shuffle_epi8(val, mask);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -439,7 +439,6 @@ inline __m128i RotateRight64(const __m128i& val)
|
|||
template <>
|
||||
inline __m128i RotateLeft64<8>(const __m128i& val)
|
||||
{
|
||||
CRYPTOPP_ASSERT(R < 64);
|
||||
const __m128i mask = _mm_set_epi8(14,13,12,11, 10,9,8,15, 6,5,4,3, 2,1,0,7);
|
||||
return _mm_shuffle_epi8(val, mask);
|
||||
}
|
||||
|
|
@ -448,7 +447,6 @@ inline __m128i RotateLeft64<8>(const __m128i& val)
|
|||
template <>
|
||||
inline __m128i RotateRight64<8>(const __m128i& val)
|
||||
{
|
||||
CRYPTOPP_ASSERT(R < 64);
|
||||
const __m128i mask = _mm_set_epi8(8,15,14,13, 12,11,10,9, 0,7,6,5, 4,3,2,1);
|
||||
return _mm_shuffle_epi8(val, mask);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue