We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5edb54e commit 89b37c3Copy full SHA for 89b37c3
src/ciphers/aes/aes_desc.c
@@ -63,10 +63,19 @@ static LTC_INLINE int s_aesni_is_supported(void)
63
a = 1;
64
c = 0;
65
66
+#if defined(_MSC_VER) && !defined(__clang__)
67
+ int arr[4];
68
+ __cpuidex(arr, a, c);
69
+ a = arr[0];
70
+ b = arr[1];
71
+ c = arr[2];
72
+ d = arr[3];
73
+#else
74
__asm__ volatile ("cpuid"
75
:"=a"(a), "=b"(b), "=c"(c), "=d"(d)
76
:"a"(a), "c"(c)
77
);
78
+#endif
79
80
is_supported = ((c >> 19) & 1) && ((c >> 25) & 1);
81
initialized = 1;
0 commit comments