From 68c772665236fb99c066bd20e3d860280c5fe0e7 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 17 Aug 2017 08:42:14 -0400 Subject: [PATCH] Update CpuId to take leaf function number --- cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu.h b/cpu.h index 209220fa..59cecf02 100644 --- a/cpu.h +++ b/cpu.h @@ -75,7 +75,7 @@ extern CRYPTOPP_DLL bool g_hasPadlockPMM; extern CRYPTOPP_DLL word32 g_cacheLineSize; CRYPTOPP_DLL void CRYPTOPP_API DetectX86Features(); -CRYPTOPP_DLL bool CRYPTOPP_API CpuId(word32 input, word32 output[4]); +CRYPTOPP_DLL bool CRYPTOPP_API CpuId(word32 func, word32 subfunc, word32 output[4]); #endif // CRYPTOPP_DOXYGEN_PROCESSING //! \brief Determines SSE2 availability @@ -272,7 +272,7 @@ inline bool HasNEON() #endif } -//! \brief Determine if an ARM processor provides Polynomial Multiplication (long) +//! \brief Determine if an ARM processor provides Polynomial Multiplication //! \returns true if the hardware is capable of polynomial multiplications at runtime, false otherwise. //! \details The multiplication instructions are available under Aarch32 and Aarch64. //! \details Runtime support requires compile time support. When compiling with GCC, you may