From c0cff249539b14c09d7331a063ec7f4e4c421151 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 20 May 2019 17:11:59 -0400 Subject: Update comments --- sha.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sha.cpp') 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(&CRYPTOGAMS_armcaps) = CryptoPP::HasNEON() ? (1<<0) : 0; return CRYPTOGAMS_armcaps; -- cgit v1.2.1