mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Closes [#124631](https://github.com/llvm/llvm-project/issues/124631). ref: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/endian.h.html This patch adds the implementation of `endian.h`, which includes the header itself and three related macros. These macros in the header rely on the compiler preprocessor, similar to how https://github.com/llvm/llvm-project/blob/main/libc/src/__support/endian_internal.h does. Hopefully this will meet the requirements for compiling llvm with llvm-libc.
33 lines
546 B
YAML
33 lines
546 B
YAML
macros:
|
|
LITTLE_ENDIAN:
|
|
in-latest-posix: ''
|
|
BIG_ENDIAN:
|
|
in-latest-posix: ''
|
|
BYTE_ORDER:
|
|
in-latest-posix: ''
|
|
be16toh:
|
|
in-latest-posix: ''
|
|
be32toh:
|
|
in-latest-posix: ''
|
|
be64toh:
|
|
in-latest-posix: ''
|
|
htobe16:
|
|
in-latest-posix: ''
|
|
htobe32:
|
|
in-latest-posix: ''
|
|
htobe64:
|
|
in-latest-posix: ''
|
|
htole16:
|
|
in-latest-posix: ''
|
|
htole32:
|
|
in-latest-posix: ''
|
|
htole64:
|
|
in-latest-posix: ''
|
|
le16toh:
|
|
in-latest-posix: ''
|
|
le32toh:
|
|
in-latest-posix: ''
|
|
le64toh:
|
|
in-latest-posix: ''
|
|
|