Update comments
parent
b1b6ea5b78
commit
c0cff24953
7
sha.cpp
7
sha.cpp
|
|
@ -176,9 +176,10 @@ ANONYMOUS_NAMESPACE_BEGIN
|
||||||
inline unsigned int CryptogamsArmCaps()
|
inline unsigned int CryptogamsArmCaps()
|
||||||
{
|
{
|
||||||
// The Cryptogams code uses a global variable named CRYPTOGAMS_armcaps
|
// The Cryptogams code uses a global variable named CRYPTOGAMS_armcaps
|
||||||
// for capabilities like ARMv7 and NEON. Storage is allocated in the
|
// for capabilities like ARMv7 and NEON. We allocate storage for
|
||||||
// module. We still need to set CRYPTOGAMS_armcaps accordingly.
|
// CRYPTOGAMS_armcaps, and the Cryptogams modules use our symbol.
|
||||||
// The Cryptogams code defines NEON as 1<<0; see ARMV7_NEON.
|
// 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;
|
*const_cast<volatile unsigned int*>(&CRYPTOGAMS_armcaps) = CryptoPP::HasNEON() ? (1<<0) : 0;
|
||||||
|
|
||||||
return CRYPTOGAMS_armcaps;
|
return CRYPTOGAMS_armcaps;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue