Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 94d4d6a

Browse files
committed
Fix processor macros bug on MSC
1 parent d4520e6 commit 94d4d6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/nitro_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ inline std::string generate_random_string(std::size_t length) {
183183
__get_cpuid_count(7, 0, &eax, &ebx, &ecx, &edx);
184184
return (ebx & (1 << 5)) != 0;
185185
}
186-
#elif defined(_MSC_VER) && (defined(__x86_64__) || defined(__i386__))
186+
#elif defined(_MSC_VER) && defined(_M_X64) || defined(_M_IX86)
187187
#include <intrin.h>
188188
inline bool isAVX2Supported() {
189189
int cpuInfo[4];

0 commit comments

Comments
 (0)