arch.h: Add RISC-V support
This commit is contained in:
parent
e74894baeb
commit
e47b68df57
@ -27,6 +27,13 @@
|
|||||||
#define WEBRTC_ARCH_ARM_FAMILY
|
#define WEBRTC_ARCH_ARM_FAMILY
|
||||||
#define WEBRTC_ARCH_64_BITS
|
#define WEBRTC_ARCH_64_BITS
|
||||||
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||||
|
#elif defined(__riscv) || defined(__riscv__)
|
||||||
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||||
|
#if __riscv_xlen == 64
|
||||||
|
#define WEBRTC_ARCH_64_BITS
|
||||||
|
#else
|
||||||
|
#define WEBRTC_ARCH_32_BITS
|
||||||
|
#endif
|
||||||
#elif defined(_M_IX86) || defined(__i386__)
|
#elif defined(_M_IX86) || defined(__i386__)
|
||||||
#define WEBRTC_ARCH_X86_FAMILY
|
#define WEBRTC_ARCH_X86_FAMILY
|
||||||
#define WEBRTC_ARCH_X86
|
#define WEBRTC_ARCH_X86
|
||||||
|
Loading…
x
Reference in New Issue
Block a user