5#ifndef INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ENDIAN_BYTE_SWAP_HPP_
6#define INCLUDE_GUARD_ARENE_BASE_ARENE_BASE_ENDIAN_BYTE_SWAP_HPP_
17#include "arene/base/stdlib_choice/cstdint.hpp"
21#if ARENE_HAS_BUILTIN(__builtin_bswap16)
22#include "arene/base/endian/detail/byte_swap16_bswap16.hpp"
24#include "arene/base/endian/detail/byte_swap16.hpp"
26#if ARENE_HAS_BUILTIN(__builtin_bswap32)
27#include "arene/base/endian/detail/byte_swap32_bswap32.hpp"
29#include "arene/base/endian/detail/byte_swap32.hpp"
31#if ARENE_HAS_BUILTIN(__builtin_bswap64)
32#include "arene/base/endian/detail/byte_swap64_bswap64.hpp"
34#include "arene/base/endian/detail/byte_swap64.hpp"
49 return byte_swap_detail::byte_swap(value);
55 return byte_swap_detail::byte_swap(value);
61 return byte_swap_detail::byte_swap(value);
Definition accumulate.hpp:37
constexpr auto byte_swap(std::uint8_t const value) noexcept -> std::uint8_t
Swap the order of bytes in a given value.
Definition byte_swap.hpp:44
Definition accumulate.hpp:36
::int32_t int32_t
A 32-bit signed integer type.
Definition cstdint.hpp:66
::int16_t int16_t
A 16-bit signed integer type.
Definition cstdint.hpp:61
::uint8_t uint8_t
An 8-bit unsigned integer type.
Definition cstdint.hpp:30
::uint16_t uint16_t
A 16-bit unsigned integer type.
Definition cstdint.hpp:36
::uint32_t uint32_t
A 32-bit unsigned integer type.
Definition cstdint.hpp:41
::uint64_t uint64_t
A 64-bit unsigned integer type.
Definition cstdint.hpp:47
::int8_t int8_t
An 8-bit signed integer type.
Definition cstdint.hpp:55
::int64_t int64_t
A 64-bit signed integer type.
Definition cstdint.hpp:71