diff --git a/src/libsodium/crypto_stream/chacha20/dolbeau/u8.h b/src/libsodium/crypto_stream/chacha20/dolbeau/u8.h index b766800f..22bf9fcf 100644 --- a/src/libsodium/crypto_stream/chacha20/dolbeau/u8.h +++ b/src/libsodium/crypto_stream/chacha20/dolbeau/u8.h @@ -200,8 +200,7 @@ if (bytes >= 512) { in12 = x[12]; in13 = x[13]; in1213 = ((uint64_t) in12) | (((uint64_t) in13) << 32); - x_12 = _mm256_broadcastq_epi64(_mm_cvtsi64_si128(in1213)); - x_13 = _mm256_broadcastq_epi64(_mm_cvtsi64_si128(in1213)); + x_12 = x_13 = _mm256_broadcastq_epi64(_mm_cvtsi64_si128(in1213)); t12 = _mm256_add_epi64(addv12, x_12); t13 = _mm256_add_epi64(addv13, x_13); diff --git a/src/libsodium/crypto_stream/salsa20/xmm6int/u8.h b/src/libsodium/crypto_stream/salsa20/xmm6int/u8.h index 14a29a7e..4be5bc4e 100644 --- a/src/libsodium/crypto_stream/salsa20/xmm6int/u8.h +++ b/src/libsodium/crypto_stream/salsa20/xmm6int/u8.h @@ -55,8 +55,7 @@ if (bytes >= 512) { in9 = x[13]; /* see arrays above for the address translation */ in89 = ((uint64_t) in8) | (((uint64_t) in9) << 32); - z8 = _mm256_broadcastq_epi64(_mm_cvtsi64_si128(in89)); - z9 = _mm256_broadcastq_epi64(_mm_cvtsi64_si128(in89)); + z8 = z9 = _mm256_broadcastq_epi64(_mm_cvtsi64_si128(in89)); t8 = _mm256_add_epi64(addv8, z8); t9 = _mm256_add_epi64(addv9, z9);