diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-05-20 17:11:59 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-05-20 17:11:59 -0400 |
commit | c0cff249539b14c09d7331a063ec7f4e4c421151 (patch) | |
tree | 8fd88c4b716b3dafa1f93e873cb26c52192a4b2e | |
parent | b1b6ea5b78c2e38cf43c3fb4a4531625d7352df0 (diff) | |
download | cryptopp-git-c0cff249539b14c09d7331a063ec7f4e4c421151.tar.gz |
Update comments
-rw-r--r-- | sha.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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;
|