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:
Eric Biggers 2018-02-18 23:03:26 -08:00
parent 58978af429
commit 0d1260be99

View File

@ -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