diff options
author | Never <[email protected]> | 2016-11-25 14:18:44 +0100 |
---|---|---|
committer | Never <[email protected]> | 2016-11-25 14:18:44 +0100 |
commit | aeba15700d58b3ab769b38feb70a78e30e45a404 (patch) | |
tree | 702a85457882acdc70a3f5f070cbbce2dd427b75 /src/lib/stream | |
parent | 54da2ad8474401d8d3bdd97d62cb96b3244cdaac (diff) |
Fix dead stores in chacha_sse2_x4
Diffstat (limited to 'src/lib/stream')
-rw-r--r-- | src/lib/stream/chacha/chacha_sse2/chacha_sse2.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/stream/chacha/chacha_sse2/chacha_sse2.cpp b/src/lib/stream/chacha/chacha_sse2/chacha_sse2.cpp index bf01cc879..f28257fb8 100644 --- a/src/lib/stream/chacha/chacha_sse2/chacha_sse2.cpp +++ b/src/lib/stream/chacha/chacha_sse2/chacha_sse2.cpp @@ -37,20 +37,17 @@ void ChaCha::chacha_sse2_x4(byte output[64*4], u32bit input[16], size_t rounds) __m128i r1_0 = input0; __m128i r1_1 = input1; __m128i r1_2 = input2; - __m128i r1_3 = input3; - r1_3 = _mm_add_epi64(r0_3, _mm_set_epi32(0, 0, 0, 1)); + __m128i r1_3 = _mm_add_epi64(r0_3, _mm_set_epi32(0, 0, 0, 1)); __m128i r2_0 = input0; __m128i r2_1 = input1; __m128i r2_2 = input2; - __m128i r2_3 = input3; - r2_3 = _mm_add_epi64(r0_3, _mm_set_epi32(0, 0, 0, 2)); + __m128i r2_3 = _mm_add_epi64(r0_3, _mm_set_epi32(0, 0, 0, 2)); __m128i r3_0 = input0; __m128i r3_1 = input1; __m128i r3_2 = input2; - __m128i r3_3 = input3; - r3_3 = _mm_add_epi64(r0_3, _mm_set_epi32(0, 0, 0, 3)); + __m128i r3_3 = _mm_add_epi64(r0_3, _mm_set_epi32(0, 0, 0, 3)); for(size_t r = 0; r != rounds / 2; ++r) { |