mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-27 15:53:57 +08:00
aesni: support cpuid on WIN32
`__cpuid` has two kinds of signatures in different headers depending on the target OS. We make it consistent between the usages ang the included header. Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
e7ebec6723
commit
308cb232bf
@ -53,7 +53,7 @@ int mbedtls_aesni_has_support(unsigned int what)
|
|||||||
if (!done) {
|
if (!done) {
|
||||||
#if MBEDTLS_AESNI_HAVE_CODE == 2
|
#if MBEDTLS_AESNI_HAVE_CODE == 2
|
||||||
static unsigned info[4] = { 0, 0, 0, 0 };
|
static unsigned info[4] = { 0, 0, 0, 0 };
|
||||||
#if defined(_MSC_VER)
|
#if defined(_WIN32)
|
||||||
__cpuid(info, 1);
|
__cpuid(info, 1);
|
||||||
#else
|
#else
|
||||||
__cpuid(1, info[0], info[1], info[2], info[3]);
|
__cpuid(1, info[0], info[1], info[2], info[3]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user