summaryrefslogtreecommitdiff
path: root/misc.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-17 13:09:24 -0400
committerJeffrey Walton <noloader@gmail.com>2021-03-17 13:09:24 -0400
commitc33a73a5eb679598b8bace18882edf3e233622bb (patch)
tree25145535e294b6046aadf87161cb4f2e1c19429b /misc.cpp
parent719df2f6c61e140191e4ba599b0c9d91b319e887 (diff)
downloadcryptopp-git-c33a73a5eb679598b8bace18882edf3e233622bb.tar.gz
Update comments
Diffstat (limited to 'misc.cpp')
-rw-r--r--misc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc.cpp b/misc.cpp
index 715b85fd..b5997301 100644
--- a/misc.cpp
+++ b/misc.cpp
@@ -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;