Skip to content

Commit ded9b46

Browse files
committed
Remove conditional exclusion of stuff in bli_cpuid. Try unsetting the macro at the end
1 parent df6dfdd commit ded9b46

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

blis/_src/frame/base/bli_cpuid.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
// -----------------------------------------------------------------------------
6060

61-
#if 0 // (defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86))
61+
#if (defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86))
6262

6363
// This has a conflicting definition in intrin.h on Windows
6464
#include "cpuid.h"
@@ -1114,3 +1114,7 @@ char* find_string_in( char* target, char* buffer, size_t buf_len, char* filepath
11141114
}
11151115

11161116
#endif
1117+
1118+
#ifdef __cpuid
1119+
#undef __cpuid
1120+
#endif

blis/_src/include/windows-x86_64/blis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26890,7 +26890,7 @@ static bool_t bli_cpuid_has_features( uint32_t have, uint32_t want )
2689026890

2689126891
// -----------------------------------------------------------------------------
2689226892

26893-
#if 0 //defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
26893+
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
2689426894

2689526895
//#include "cpuid.h" // skipped
2689626896

0 commit comments

Comments
 (0)