diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2021-06-10 16:16:45 -0700 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2021-06-17 01:48:37 +0000 |
commit | e47b68df57aacc511472a1d4af1838538156931a (patch) | |
tree | 97302f6d186e514ce1c748253d2f3dd6bbffe778 /webrtc | |
parent | e74894baebe0bba7a7fe37ae0a46a2e9b1b2e021 (diff) |
arch.h: Add RISC-V support
Diffstat (limited to 'webrtc')
-rw-r--r-- | webrtc/rtc_base/system/arch.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webrtc/rtc_base/system/arch.h b/webrtc/rtc_base/system/arch.h index ed216e6..aee3756 100644 --- a/webrtc/rtc_base/system/arch.h +++ b/webrtc/rtc_base/system/arch.h @@ -27,6 +27,13 @@ #define WEBRTC_ARCH_ARM_FAMILY #define WEBRTC_ARCH_64_BITS #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__) #define WEBRTC_ARCH_X86_FAMILY #define WEBRTC_ARCH_X86 |