Skip to content

Commit

Permalink
Disallow 32-bit mode in clang section
Browse files Browse the repository at this point in the history
Fix register %rbx is only available in 64-bit mode
  • Loading branch information
medns authored and terrelln committed Dec 4, 2024
1 parent 82d4705 commit 5e0a83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ MEM_STATIC ZSTD_cpuid_t ZSTD_cpuid(void) {
U32 f7b = 0;
U32 f7c = 0;
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86))
#if !defined(__clang__) || __clang_major__ >= 16
#if !defined(_M_X64) || !defined(__clang__) || __clang_major__ >= 16
int reg[4];
__cpuid((int*)reg, 0);
{
Expand Down

0 comments on commit 5e0a83e

Please sign in to comment.