30 lines
760 B
Diff
30 lines
760 B
Diff
|
|
From 53c01b783b8e3223ff589a794742e02647a5de98 Mon Sep 17 00:00:00 2001
|
||
|
|
From: yangyanchao <yangyanchao6@huawei.com>
|
||
|
|
Date: Wed, 28 Oct 2020 17:02:42 +0800
|
||
|
|
Subject: [PATCH] huawei-support-riscv
|
||
|
|
|
||
|
|
---
|
||
|
|
webrtc/typedefs.h | 7 +++++++
|
||
|
|
1 file changed, 7 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/webrtc/typedefs.h b/webrtc/typedefs.h
|
||
|
|
index d875490..bbd904e 100644
|
||
|
|
--- a/webrtc/typedefs.h
|
||
|
|
+++ b/webrtc/typedefs.h
|
||
|
|
@@ -44,6 +44,13 @@
|
||
|
|
#elif defined(__MIPSEL__)
|
||
|
|
#define WEBRTC_ARCH_32_BITS
|
||
|
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||
|
|
+#elif defined(__riscv)
|
||
|
|
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||
|
|
+#if __riscv_xlen == 64
|
||
|
|
+#define WEBRTC_ARCH_64_BITS
|
||
|
|
+#else
|
||
|
|
+#define WEBRTC_ARCH_32_BTIS
|
||
|
|
+#endif
|
||
|
|
#elif defined(__pnacl__)
|
||
|
|
#define WEBRTC_ARCH_32_BITS
|
||
|
|
#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||
|
|
--
|
||
|
|
1.8.3.1
|