12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef RTC_BASE_SYSTEM_ARCH_H_
- #define RTC_BASE_SYSTEM_ARCH_H_
- #if defined(_M_X64) || defined(__x86_64__)
- #define WEBRTC_ARCH_X86_FAMILY
- #define WEBRTC_ARCH_X86_64
- #define WEBRTC_ARCH_64_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(_M_ARM64) || defined(__aarch64__)
- #define WEBRTC_ARCH_ARM_FAMILY
- #define WEBRTC_ARCH_64_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(_M_IX86) || defined(__i386__)
- #define WEBRTC_ARCH_X86_FAMILY
- #define WEBRTC_ARCH_X86
- #define WEBRTC_ARCH_32_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(__ARMEL__)
- #define WEBRTC_ARCH_ARM_FAMILY
- #define WEBRTC_ARCH_32_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(__MIPSEL__)
- #define WEBRTC_ARCH_MIPS_FAMILY
- #if defined(__LP64__)
- #define WEBRTC_ARCH_64_BITS
- #else
- #define WEBRTC_ARCH_32_BITS
- #endif
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(__pnacl__)
- #define WEBRTC_ARCH_32_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #elif defined(__EMSCRIPTEN__)
- #define WEBRTC_ARCH_32_BITS
- #define WEBRTC_ARCH_LITTLE_ENDIAN
- #else
- #error Please add support for your architecture in rtc_base/system/arch.h
- #endif
- #if !(defined(WEBRTC_ARCH_LITTLE_ENDIAN) ^ defined(WEBRTC_ARCH_BIG_ENDIAN))
- #error Define either WEBRTC_ARCH_LITTLE_ENDIAN or WEBRTC_ARCH_BIG_ENDIAN
- #endif
- #endif // RTC_BASE_SYSTEM_ARCH_H_
|