33 #ifndef EMANENET_HEADER_ 34 #define EMANENET_HEADER_ 61 ((((x) & 0XFF00) >> 8)) | \ 65 ((((x) & 0XFF000000UL) >> 24) | \ 66 (((x) & 0X00FF0000UL) >> 8) | \ 67 (((x) & 0X0000FF00UL) << 8) | \ 68 (((x) & 0X000000FFUL) << 24)) 71 ((((x) & 0XFF00000000000000ULL) >> 56) | \ 72 (((x) & 0X00FF000000000000ULL) >> 40) | \ 73 (((x) & 0X0000FF0000000000ULL) >> 24) | \ 74 (((x) & 0X000000FF00000000ULL) >> 8) | \ 75 (((x) & 0X00000000FF000000ULL) << 8) | \ 76 (((x) & 0X0000000000FF0000ULL) << 24) | \ 77 (((x) & 0X000000000000FF00ULL) << 40) | \ 78 (((x) & 0X00000000000000FFULL) << 56)) 81 constexpr std::uint64_t
HTONLL(std::uint64_t x)
83 #if __BYTE_ORDER == __BIG_ENDIAN 85 #elif __BYTE_ORDER == __LITTLE_ENDIAN 88 # error "need to specify endian type" 92 constexpr std::uint64_t
NTOHLL(std::uint64_t x)
94 #if __BYTE_ORDER == __BIG_ENDIAN 96 #elif __BYTE_ORDER == __LITTLE_ENDIAN 99 # error "need to specify endian type" 103 constexpr std::uint32_t
HTONL(std::uint32_t x)
105 #if __BYTE_ORDER == __BIG_ENDIAN 107 #elif __BYTE_ORDER == __LITTLE_ENDIAN 110 # error "need to specify endian type" 114 constexpr std::uint32_t
NTOHL(std::uint32_t x)
116 #if __BYTE_ORDER == __BIG_ENDIAN 118 #elif __BYTE_ORDER == __LITTLE_ENDIAN 121 # error "need to specify endian type" 125 constexpr std::uint16_t
HTONS(std::uint16_t x)
127 #if __BYTE_ORDER == __BIG_ENDIAN 129 #elif __BYTE_ORDER == __LITTLE_ENDIAN 132 # error "need to specify endian type" 136 constexpr std::uint16_t
NTOHS(std::uint16_t x)
138 #if __BYTE_ORDER == __BIG_ENDIAN 140 #elif __BYTE_ORDER == __LITTLE_ENDIAN 143 # error "need to specify endian type" 148 #endif //EMANE_NET_HEADER_
constexpr std::uint32_t NTOHL(std::uint32_t x)
constexpr std::uint64_t HTONLL(std::uint64_t x)
constexpr std::uint64_t NTOHLL(std::uint64_t x)
constexpr std::uint16_t HTONS(std::uint16_t x)
constexpr std::uint16_t NTOHS(std::uint16_t x)
constexpr std::uint32_t HTONL(std::uint32_t x)