mirror of
https://github.com/mackron/miniaudio.git
synced 2026-07-22 12:52:43 +02:00
Add placeholder RISC-V architecture detection.
Public issue https://github.com/mackron/miniaudio/pull/1135
This commit is contained in:
+12
@@ -11660,12 +11660,24 @@ IMPLEMENTATION
|
||||
#define MA_ARM64
|
||||
#endif
|
||||
|
||||
#if defined(__riscv)
|
||||
#if defined(__riscv_xlen)
|
||||
#if __riscv_xlen == 64
|
||||
#define MA_RISCV64
|
||||
#elif __riscv_xlen == 32
|
||||
#define MA_RISCV32
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) || (defined(_M_X64) && !defined(_M_ARM64EC))
|
||||
#define MA_X64
|
||||
#elif defined(__i386) || defined(_M_IX86)
|
||||
#define MA_X86
|
||||
#elif defined(MA_ARM32) || defined(MA_ARM64)
|
||||
#define MA_ARM
|
||||
#elif defined(MA_RISCV32) || defined(MA_RISCV64)
|
||||
#define MA_RISCV
|
||||
#endif
|
||||
|
||||
/* Intrinsics Support */
|
||||
|
||||
Reference in New Issue
Block a user