summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-05-20 17:11:59 -0400
committerJeffrey Walton <noloader@gmail.com>2019-05-20 17:11:59 -0400
commitc0cff249539b14c09d7331a063ec7f4e4c421151 (patch)
tree8fd88c4b716b3dafa1f93e873cb26c52192a4b2e /sha.cpp
parentb1b6ea5b78c2e38cf43c3fb4a4531625d7352df0 (diff)
downloadcryptopp-git-c0cff249539b14c09d7331a063ec7f4e4c421151.tar.gz
Update comments
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/sha.cpp b/sha.cpp
index 4f465532..cde7e8da 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -176,9 +176,10 @@ ANONYMOUS_NAMESPACE_BEGIN
inline unsigned int CryptogamsArmCaps()
{
// The Cryptogams code uses a global variable named CRYPTOGAMS_armcaps
- // for capabilities like ARMv7 and NEON. Storage is allocated in the
- // module. We still need to set CRYPTOGAMS_armcaps accordingly.
- // The Cryptogams code defines NEON as 1<<0; see ARMV7_NEON.
+ // for capabilities like ARMv7 and NEON. We allocate storage for
+ // CRYPTOGAMS_armcaps, and the Cryptogams modules use our symbol.
+ // The Cryptogams code defines ARMV7_NEON as 1<<0, so we need to
+ // set the bits accordingly in CRYPTOGAMS_armcaps.
*const_cast<volatile unsigned int*>(&CRYPTOGAMS_armcaps) = CryptoPP::HasNEON() ? (1<<0) : 0;
return CRYPTOGAMS_armcaps;