diff options
author | Jack Lloyd <[email protected]> | 2016-11-25 11:51:50 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-25 11:51:50 -0500 |
commit | 73289331dde7d238c74436656234c284d2a177eb (patch) | |
tree | ecc009d079bd5302c2cad606ad36b5abc0e05d57 /src | |
parent | bee79188b1128edb12880366277ff5e9c5f02a08 (diff) | |
parent | aeba15700d58b3ab769b38feb70a78e30e45a404 (diff) |
Merge GH #737 Remove dead stores in SSE2 ChaCha code
Diffstat (limited to 'src')
-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) { |