Fix assert in Debug builds

This was copy/paste from the template function
pull/548/head
Jeffrey Walton 2017-11-30 11:54:21 -05:00
parent 14e326482c
commit a7fec9c0f6
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 0 additions and 4 deletions

View File

@ -492,7 +492,6 @@ inline __m128i RotateRight64(const __m128i& val)
template <> template <>
inline __m128i RotateLeft64<8>(const __m128i& val) 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); 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); return _mm_shuffle_epi8(val, mask);
} }
@ -501,7 +500,6 @@ inline __m128i RotateLeft64<8>(const __m128i& val)
template <> template <>
inline __m128i RotateRight64<8>(const __m128i& val) 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); 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); return _mm_shuffle_epi8(val, mask);
} }

View File

@ -439,7 +439,6 @@ inline __m128i RotateRight64(const __m128i& val)
template <> template <>
inline __m128i RotateLeft64<8>(const __m128i& val) 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); 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); return _mm_shuffle_epi8(val, mask);
} }
@ -448,7 +447,6 @@ inline __m128i RotateLeft64<8>(const __m128i& val)
template <> template <>
inline __m128i RotateRight64<8>(const __m128i& val) 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); 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); return _mm_shuffle_epi8(val, mask);
} }