Skip to content

Commit

Permalink
Remove conditional exclusion of stuff in bli_cpuid. Try unsetting the…
Browse files Browse the repository at this point in the history
… macro at the end
  • Loading branch information
honnibal committed Jan 11, 2025
1 parent df6dfdd commit ded9b46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion blis/_src/frame/base/bli_cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

// -----------------------------------------------------------------------------

#if 0 // (defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86))
#if (defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86))

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

#endif

#ifdef __cpuid
#undef __cpuid
#endif
2 changes: 1 addition & 1 deletion blis/_src/include/windows-x86_64/blis.h
Original file line number Diff line number Diff line change
Expand Up @@ -26890,7 +26890,7 @@ static bool_t bli_cpuid_has_features( uint32_t have, uint32_t want )

// -----------------------------------------------------------------------------

#if 0 //defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386) || defined(_M_IX86)

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

Expand Down

0 comments on commit ded9b46

Please sign in to comment.