From 1a06aadbf06884cb9ad8dec8b37ee8674effc6e6 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 18 Nov 2018 14:54:37 -0500 Subject: [PATCH] Update comments --- blake2s_simd.cpp | 5 +++++ chacha_simd.cpp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/blake2s_simd.cpp b/blake2s_simd.cpp index 1d756f9e..af4aba61 100644 --- a/blake2s_simd.cpp +++ b/blake2s_simd.cpp @@ -847,6 +847,11 @@ uint32x4_p VectorSet32<3,1,3,1>(const uint32x4_p a, const uint32x4_p b, return VecPermute(a, c, mask); } +// BLAKE2_Compress32_CORE will use either POWER7 or ALTIVEC, +// depending on the flags used to compile this source file. The +// abstractions are handled in VecLoad, VecStore and friends. In +// the future we may to provide both POWER7 or ALTIVEC at the same +// time to better support distros. void BLAKE2_Compress32_CORE(const byte* input, BLAKE2s_State& state) { # define m1 m0 diff --git a/chacha_simd.cpp b/chacha_simd.cpp index 0945c597..307d4945 100644 --- a/chacha_simd.cpp +++ b/chacha_simd.cpp @@ -826,7 +826,9 @@ void ChaCha_OperateKeystream_SSE2(const word32 *state, const byte* input, byte * // ChaCha_OperateKeystream_CORE will use either POWER7 or ALTIVEC, // depending on the flags used to compile this source file. The -// abstractions are handled in VecLoad, VecStore and friends. +// abstractions are handled in VecLoad, VecStore and friends. In +// the future we may to provide both POWER7 or ALTIVEC at the same +// time to better support distros. inline void ChaCha_OperateKeystream_CORE(const word32 *state, const byte* input, byte *output, unsigned int rounds) { const uint32x4_p state0 = VecLoad(state + 0*4);