Lines Matching +full:- +full:x
4 * to import symbols defining non-standard endian handling functions.
9 /*-
10 * SPDX-FileCopyrightText: 2018-2021 Espressif Systems (Shanghai) CO LTD
11 * SPDX-FileCopyrightText: 2020 Francesco Giancane <francesco.giancane@accenture.com>
12 * SPDX-FileCopyrightText: 2002 Thomas Moestl <tmm@FreeBSD.org>
13 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD AND Apache-2.0
48 * In xtensa-newlib distribution it is located in <machine/endian.h>
56 #define bswap16(x) __bswap16(x) argument
57 #define bswap32(x) __bswap32(x) argument
58 #define bswap64(x) __bswap64(x) argument
65 #define htobe16(x) bswap16((x)) argument
66 #define htobe32(x) bswap32((x)) argument
67 #define htobe64(x) bswap64((x)) argument
68 #define htole16(x) ((uint16_t)(x)) argument
69 #define htole32(x) ((uint32_t)(x)) argument
70 #define htole64(x) ((uint64_t)(x)) argument
72 #define be16toh(x) bswap16((x)) argument
73 #define be32toh(x) bswap32((x)) argument
74 #define be64toh(x) bswap64((x)) argument
75 #define le16toh(x) ((uint16_t)(x)) argument
76 #define le32toh(x) ((uint32_t)(x)) argument
77 #define le64toh(x) ((uint64_t)(x)) argument
79 #define htobe16(x) ((uint16_t)(x)) argument
80 #define htobe32(x) ((uint32_t)(x)) argument
81 #define htobe64(x) ((uint64_t)(x)) argument
82 #define htole16(x) bswap16((x)) argument
83 #define htole32(x) bswap32((x)) argument
84 #define htole64(x) bswap64((x)) argument
86 #define be16toh(x) ((uint16_t)(x)) argument
87 #define be32toh(x) ((uint32_t)(x)) argument
88 #define be64toh(x) ((uint64_t)(x)) argument
89 #define le16toh(x) bswap16((x)) argument
90 #define le32toh(x) bswap32((x)) argument
91 #define le64toh(x) bswap64((x)) argument
94 /* Alignment-agnostic encode/decode bytestream to/from little/big endian. */