loongarch: Add loongarch architecture support.

Copied from chromium's build/build_config.h

No-Try: True
Bug: webrtc:14433
Change-Id: I5ab4dbb49bd74aa8f6f6054776d9f1f3d606d914
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/275288
Owners-Override: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Andrey Logvin <landrey@google.com>
Cr-Commit-Position: refs/heads/main@{#38067}
This commit is contained in:
Wang Qing 2022-09-13 11:27:34 +08:00 committed by WebRTC LUCI CQ
parent 094ee30504
commit 842858c6d0
2 changed files with 11 additions and 0 deletions

View file

@ -172,6 +172,7 @@ Videona Socialmedia <*@videona.com>
Videxio AS <*@videxio.com> Videxio AS <*@videxio.com>
Vidyo, Inc. <*@vidyo.com> Vidyo, Inc. <*@vidyo.com>
Vonage Holdings Corp. <*@vonage.com> Vonage Holdings Corp. <*@vonage.com>
Wang Qing <wangqing-hf@loongson.cn>
Wire Swiss GmbH <*@wire.com> Wire Swiss GmbH <*@wire.com>
&yet LLC <*@andyet.com> &yet LLC <*@andyet.com>
# END organizations section. # END organizations section.

View file

@ -73,6 +73,16 @@
#elif defined(__riscv) && __riscv_xlen == 32 #elif defined(__riscv) && __riscv_xlen == 32
#define WEBRTC_ARCH_32_BITS #define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN #define WEBRTC_ARCH_LITTLE_ENDIAN
#elif defined(__loongarch32)
#define WEBRTC_ARCH_LOONG_FAMILY
#define WEBRTC_ARCH_LOONG32
#define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
#elif defined(__loongarch64)
#define WEBRTC_ARCH_LOONG_FAMILY
#define WEBRTC_ARCH_LOONG64
#define WEBRTC_ARCH_64_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
#elif defined(__pnacl__) #elif defined(__pnacl__)
#define WEBRTC_ARCH_32_BITS #define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN #define WEBRTC_ARCH_LITTLE_ENDIAN