|
|
|
@ -28,10 +28,10 @@ GNU General Public License for more details.
@@ -28,10 +28,10 @@ GNU General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
//================================================================
|
|
|
|
|
#define PLATFORM_WIN32 1 |
|
|
|
|
#define PLATFORM_ANDROID 2 |
|
|
|
|
#define PLATFORM_LINUX 3 |
|
|
|
|
#define PLATFORM_APPLE 4 |
|
|
|
|
#define PLATFORM_FREEBSD 5 |
|
|
|
|
#define PLATFORM_LINUX 2 |
|
|
|
|
#define PLATFORM_FREEBSD 3 |
|
|
|
|
#define PLATFORM_ANDROID 4 |
|
|
|
|
#define PLATFORM_APPLE 5 |
|
|
|
|
#define PLATFORM_NETBSD 6 |
|
|
|
|
#define PLATFORM_OPENBSD 7 |
|
|
|
|
#define PLATFORM_EMSCRIPTEN 8 |
|
|
|
@ -82,8 +82,8 @@ GNU General Public License for more details.
@@ -82,8 +82,8 @@ GNU General Public License for more details.
|
|
|
|
|
// CPU ARCHITECTURE DEFINES
|
|
|
|
|
//
|
|
|
|
|
//================================================================
|
|
|
|
|
#define ARCHITECTURE_AMD64 1 |
|
|
|
|
#define ARCHITECTURE_X86 2 |
|
|
|
|
#define ARCHITECTURE_X86 1 |
|
|
|
|
#define ARCHITECTURE_AMD64 2 |
|
|
|
|
#define ARCHITECTURE_ARM 3 |
|
|
|
|
#define ARCHITECTURE_MIPS 4 |
|
|
|
|
#define ARCHITECTURE_JS 6 |
|
|
|
@ -131,27 +131,27 @@ GNU General Public License for more details.
@@ -131,27 +131,27 @@ GNU General Public License for more details.
|
|
|
|
|
//================================================================
|
|
|
|
|
#define BIT( n ) ( 1U << ( n )) |
|
|
|
|
|
|
|
|
|
#define ARCHITECTURE_ARM_VER_MASK ( BIT( 5 ) - 1 ) |
|
|
|
|
#define ARCHITECTURE_ARM_VER_SHIFT 0 |
|
|
|
|
#define ARCHITECTURE_ARM_HARDFP BIT( 5 ) |
|
|
|
|
#define ARCH_ARM_VER_MASK ( BIT( 5 ) - 1 ) |
|
|
|
|
#define ARCH_ARM_VER_SHIFT 0 |
|
|
|
|
#define ARCH_ARM_HARDFP BIT( 5 ) |
|
|
|
|
|
|
|
|
|
#define ARCHITECTURE_RISCV_FP_SOFT 0 |
|
|
|
|
#define ARCHITECTURE_RISCV_FP_SINGLE 1 |
|
|
|
|
#define ARCHITECTURE_RISCV_FP_DOUBLE 2 |
|
|
|
|
#define ARCH_RISCV_FP_SOFT 0 |
|
|
|
|
#define ARCH_RISCV_FP_SINGLE 1 |
|
|
|
|
#define ARCH_RISCV_FP_DOUBLE 2 |
|
|
|
|
|
|
|
|
|
#if XASH_ARCHITECTURE == ARCHITECTURE_ARM |
|
|
|
|
#if XASH_ARM_HARDFP |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ( ARCHITECTURE_ARM_HARDFP | XASH_ARM ) |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ( ARCH_ARM_HARDFP | XASH_ARM ) |
|
|
|
|
#else |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ( XASH_ARM ) |
|
|
|
|
#endif |
|
|
|
|
#elif XASH_ARCHITECTURE == ARCHITECTURE_RISCV |
|
|
|
|
#if XASH_RISCV_SOFTFP |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ARCHITECTURE_RISCV_FP_SOFT |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ARCH_RISCV_FP_SOFT |
|
|
|
|
#elif XASH_RISCV_SINGLEFP |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ARCHITECTURE_RISCV_FP_SINGLE |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ARCH_RISCV_FP_SINGLE |
|
|
|
|
#elif XASH_RISCV_DOUBLEFP |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ARCHITECTURE_RISCV_FP_DOUBLE |
|
|
|
|
#define XASH_ARCHITECTURE_ABI ARCH_RISCV_FP_DOUBLE |
|
|
|
|
#else |
|
|
|
|
#error |
|
|
|
|
#endif |
|
|
|
|