diff options
author | Jack Lloyd <[email protected]> | 2018-11-17 13:54:04 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-11-17 22:44:27 -0500 |
commit | 6b3a827fb493ad884c7443092ba8f9967636b3c8 (patch) | |
tree | 50726e332e91d5292dc2358e61964ac39fb24e6e /src/lib/stream | |
parent | 869de6826a42f4737a5236fbdd84c3c69f8c74c0 (diff) |
Remove needless memset operation
Diffstat (limited to 'src/lib/stream')
-rw-r--r-- | src/lib/stream/chacha/chacha_avx2/chacha_avx2.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/stream/chacha/chacha_avx2/chacha_avx2.cpp b/src/lib/stream/chacha/chacha_avx2/chacha_avx2.cpp index e9c3aeb75..8cd2eca7f 100644 --- a/src/lib/stream/chacha/chacha_avx2/chacha_avx2.cpp +++ b/src/lib/stream/chacha/chacha_avx2/chacha_avx2.cpp @@ -183,7 +183,6 @@ void ChaCha::chacha_avx2_x8(uint8_t output[64*8], uint32_t state[16], size_t rou SIMD_8x32::transpose(R08, R09, R10, R11); SIMD_8x32::transpose(R12, R13, R14, R15); - memset(output, 0, 16*32); __m256i* output_mm = reinterpret_cast<__m256i*>(output); _mm256_storeu_si256(output_mm , _mm256_permute2x128_si256(R00.handle(), R04.handle(), 0 + (2 << 4))); |