mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-11 13:32:14 -04:00
lib/x86: allow CPU feature detection on 32-bit x86
The SSE2, AVX2, BMI2, etc. code actually works on 32-bit x86 if the CPU has those features. So there is no need to restrict it to x86_64-only.
This commit is contained in:
parent
58978af429
commit
0d1260be99
@ -7,7 +7,8 @@
|
||||
|
||||
#include "../lib_common.h"
|
||||
|
||||
#if defined(__x86_64__) && COMPILER_SUPPORTS_TARGET_FUNCTION_ATTRIBUTE
|
||||
#if (defined(__i386__) || defined(__x86_64__)) && \
|
||||
COMPILER_SUPPORTS_TARGET_FUNCTION_ATTRIBUTE
|
||||
# define X86_CPU_FEATURES_ENABLED 1
|
||||
#else
|
||||
# define X86_CPU_FEATURES_ENABLED 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user