summaryrefslogtreecommitdiff
path: root/blake2s-simd.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-03 18:56:59 -0400
committerJeffrey Walton <noloader@gmail.com>2018-11-03 18:56:59 -0400
commit4e3d160acc5de0c1f35308f0b54bf2a73f180be3 (patch)
tree86b137315f09bd128a65e331d4c5979d7e7a8cce /blake2s-simd.cpp
parent43cf1f0d95a14159638689b08ea1ff7757257526 (diff)
downloadcryptopp-git-4e3d160acc5de0c1f35308f0b54bf2a73f180be3.tar.gz
Update comments
Diffstat (limited to 'blake2s-simd.cpp')
-rw-r--r--blake2s-simd.cpp6
1 files 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 <unsigned int E1, unsigned int E2>
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<Z>(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};