Update comments

This commit is contained in:
Jeffrey Walton 2019-05-20 17:11:59 -04:00
parent b1b6ea5b78
commit c0cff24953
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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;