diff options
author | sebhz <seb@zyglute.fr> | 2023-03-19 08:01:44 +0100 |
---|---|---|
committer | nickjsanders <nick.j.sanders@gmail.com> | 2023-03-21 13:45:11 -0700 |
commit | 96504cbdb44efbcfca4659dac4caa0f644909ca5 (patch) | |
tree | fb5e8a249d93fd243924aeb60ced9f26df8cba40 | |
parent | fd4ae17eaad7fde69e1308abbe5af3181ec6ce15 (diff) |
Fix x86 compilation on some systems
Some systems (or system configurations) use a compiler version
which does not have the x86 __rtdsc() intrinsic (and probably
others) defined in immintrin.h.
On those systems, compilation for x86 arch will fail. This
was reported on Debian 10, RHEL 8.x and Ubuntu 20.04.
It seems immintrin.h is mostly for x86 SIMD intrinsics, but some
compilers also put __rtdsc() there.
x86intrin.h is supposed to include immintrin.h *and* define all
the Intel processors intrinsics, so including it before immintrin.h.
-rw-r--r-- | src/os.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -34,6 +34,7 @@ #if defined(STRESSAPPTEST_CPU_X86_64) || defined(STRESSAPPTEST_CPU_I686) #include <immintrin.h> +#include <x86intrin.h> #if defined(_MSC_VER) #include <intrin.h> #endif |