diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-03-17 13:09:24 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-03-17 13:09:24 -0400 |
commit | c33a73a5eb679598b8bace18882edf3e233622bb (patch) | |
tree | 25145535e294b6046aadf87161cb4f2e1c19429b /misc.cpp | |
parent | 719df2f6c61e140191e4ba599b0c9d91b319e887 (diff) | |
download | cryptopp-git-c33a73a5eb679598b8bace18882edf3e233622bb.tar.gz |
Update comments
Diffstat (limited to 'misc.cpp')
-rw-r--r-- | misc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -24,7 +24,7 @@ #endif
#if defined(__ARM_FEATURE_NEON)
-# if (CRYPTOPP_ARM_NEON_HEADER)
+# if defined(CRYPTOPP_ARM_NEON_HEADER)
# include <arm_neon.h>
# endif
#endif
@@ -94,6 +94,8 @@ void xorbuf(byte *buf, const byte *mask, size_t count) if (count == 0) return;
#endif
+ // word64 and stride of 8 slows things down on x86_64.
+ // word64 and stride of 8 makes no difference on ARM.
while (count >= 4)
{
word32 r, b, m;
@@ -150,6 +152,8 @@ void xorbuf(byte *output, const byte *input, const byte *mask, size_t count) if (count == 0) return;
#endif
+ // word64 and stride of 8 slows things down on x86_64.
+ // word64 and stride of 8 makes no difference on ARM.
while (count >= 4)
{
word32 b, m, r;
|