@ -134,65 +205,16 @@ Returns current name of the architecture. Without any spaces.
@@ -134,65 +205,16 @@ Returns current name of the architecture. Without any spaces.
*/
constchar*Q_buildarch(void)
{
constchar*archname;
#if XASH_AMD64
archname="amd64";
#elif XASH_X86
archname="i386";
#elif XASH_ARM && XASH_64BIT
archname="arm64";
#elif XASH_ARM
archname="armv"
#if XASH_ARM == 8
"8_32"// for those who (mis)using 32-bit OS on 64-bit CPU
#elif XASH_ARM == 7
"7"
#elif XASH_ARM == 6
"6"
#elif XASH_ARM == 5
"5"
#elif XASH_ARM == 4
"4"
#endif
#if XASH_ARM_HARDFP
"hf"
#else
"l"
#endif
;
#elif XASH_MIPS && XASH_BIG_ENDIAN
archname="mips"
#if XASH_64BIT
"64"
#endif
#if XASH_LITTLE_ENDIAN
"el"
#endif
;
#elif XASH_RISCV
archname="riscv"
#if XASH_64BIT
"64"
#else
"32"
#endif
#if XASH_RISCV_SINGLEFP
"d"
#elif XASH_RISCV_DOUBLEFP
"f"
#endif
;
#elif XASH_JS
archname="javascript";
#elif XASH_E2K
archname="e2k";
returnQ_ArchitectureStringByID(
XASH_ARCHITECTURE,
XASH_ARCHITECTURE_ABI,
XASH_ENDIANNESS,
#if XASH_64BIT
true
#else
#error "Place your architecture name here! If this is a mistake, try to fix conditions above and report a bug"