From f364aedf96ee8cdce33c428ff8e0bb2c1514b6ab Mon Sep 17 00:00:00 2001 From: r-a-sattarov Date: Tue, 23 Nov 2021 22:26:33 +0300 Subject: [PATCH 1/2] 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 From 21e9bf467895295e4e54e0284b4c2699b0c10e65 Mon Sep 17 00:00:00 2001 From: r-a-sattarov Date: Wed, 24 Nov 2021 23:52:58 +0300 Subject: [PATCH 2/2] nasal/naref.h: added e2k endianness (MCST Elbrus 2000) --- simgear/nasal/naref.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/nasal/naref.h b/simgear/nasal/naref.h index 217b7477..21f766f5 100644 --- a/simgear/nasal/naref.h +++ b/simgear/nasal/naref.h @@ -18,7 +18,8 @@ # endif #elif defined(_M_IX86) || defined(__i386) || defined(__x86_64) || \ defined(__ia64__) || defined(_M_IA64) || defined(__ARMEL__) || \ - defined(_M_X64) || defined(_M_ARM) + defined(_M_X64) || defined(_M_ARM) || \ + defined(__e2k__) # define NASAL_LE #elif defined(__sparc) || defined(__ARMEB__) || \ defined(__hppa__) || defined(__s390__) || defined(__s390x__)