Files
llvm/libc/utils/docgen/endian.yaml
c8ef 6807164500 [libc] Add the <endian.h> header. (#125168)
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.
2025-02-07 09:20:18 +08:00

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: ''