22#ifndef __ARCH_BYTEORDER_H
23#define __ARCH_BYTEORDER_H
29#include <machine/endian.h>
44#define BYTE_ORDER LITTLE_ENDIAN
55__depr(
"arch_swap16() is deprecated, use __builtin_bswap16().")
69__depr(
"arch_swap32() is deprecated, use __builtin_bswap32().")
85__depr(
"arch_ntohs() is deprecated, use ntohs() from <arpa/inet.h>")
101__depr(
"arch_ntohl() is deprecated, use ntohl() from <arpa/inet.h>")
117__depr(
"arch_htons() is deprecated, use htons() from <arpa/inet.h>")
133__depr(
"arch_htonl() is deprecated, use htonl() from <arpa/inet.h>")
Various common macros used throughout the codebase.
static uint32_t("Please see purupuru_effect_t for modern equivalent.") PURUPURU_EFFECT2_UINTENSITY(uint8_t x)
Definition purupuru.h:96
arch_ntohs() is deprecated
Convert network-to-host short.
arch_ntohl() is deprecated
Convert network-to-host long.
use __builtin_bswap32().") static inline uint32_t arch_swap32(uint32_t x)
Definition byteorder.h:69
arch_swap32() is deprecated
Swap the byte order of a 32-bit integer.
arch_htons() is deprecated
Convert host-to-network short.
arch_swap16() is deprecated
Swap the byte order of a 16-bit integer.
use __builtin_bswap16().") static inline uint16_t arch_swap16(uint16_t x)
Definition byteorder.h:55
arch_htonl() is deprecated
Convert host-to-network long.
#define inline
Definition cdefs.h:107