From f364aedf96ee8cdce33c428ff8e0bb2c1514b6ab Mon Sep 17 00:00:00 2001 From: r-a-sattarov Date: Tue, 23 Nov 2021 22:26:33 +0300 Subject: [PATCH] math/simd.hxx: fix build by MCST lcc compiler when using ENABLE_SIMD_CODE=ON MCST E2K (Elbrus 2000) - this is VLIW/EPIC architecture, like Intel Itanium (IA-64) architecture. e2k architecture has half native / half software support of most Intel/AMD SIMD e.g. MMX/SSE/SSE2/SSE3/SSSE3/SSE4.1/SSE4.2/AES/AVX/AVX2 & 3DNow!/SSE4a/XOP/FMA4 Ref: https://en.wikipedia.org/wiki/Elbrus_2000 --- simgear/math/simd.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/math/simd.hxx b/simgear/math/simd.hxx index b5cab2e5..82fbc997 100644 --- a/simgear/math/simd.hxx +++ b/simgear/math/simd.hxx @@ -30,7 +30,7 @@ #if defined(_MSC_VER) # include -#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) +#elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__) || defined(__e2k__)) # include #elif defined(__GNUC__) && defined(__ARM_NEON__) # include