From 4e3d160acc5de0c1f35308f0b54bf2a73f180be3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 3 Nov 2018 18:56:59 -0400 Subject: [PATCH] Update comments --- blake2s-simd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blake2s-simd.cpp b/blake2s-simd.cpp index 37baf5a1..419ac413 100644 --- a/blake2s-simd.cpp +++ b/blake2s-simd.cpp @@ -735,13 +735,15 @@ inline uint32x4_p VectorShiftLeftOctet(const uint32x4_p a) template inline uint32x4_p VectorSet32(const uint32x4_p a, const uint32x4_p b) { - // Re-index + // Re-index. I'd like to use something like Z=Y*4 and then + // VectorShiftLeftOctet(b) but it crashes early Red Hat + // GCC compilers. enum {X=E1&3, Y=E2&3}; // Don't care element const unsigned int DC = 31; - // Element 3 combinations + // Element 0 combinations if (X == 0 && Y == 0) { const uint8x16_p mask = {0,1,2,3, 16,17,18,19, DC,DC,DC,DC, DC,DC,DC,DC};