summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-18 14:54:37 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-18 14:54:37 -0500
commit1a06aadbf06884cb9ad8dec8b37ee8674effc6e6 (patch)
tree6631f5ab18e1a39a65f9b7e6e6d96fbd50670881
parent2e68e95a928a921db1cb97d4433f6a4ff09fcac8 (diff)
downloadcryptopp-git-1a06aadbf06884cb9ad8dec8b37ee8674effc6e6.tar.gz
Update comments
-rw-r--r--blake2s_simd.cpp5
-rw-r--r--chacha_simd.cpp4
2 files changed, 8 insertions, 1 deletions
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);