diff --git a/conversion/binaryconversion.h b/conversion/binaryconversion.h index 020c3e1..36b515a 100644 --- a/conversion/binaryconversion.h +++ b/conversion/binaryconversion.h @@ -79,28 +79,6 @@ namespace CppUtilities { -/*! - * \brief Encapsulates binary conversion functions using the big endian byte order. - * \sa Endianness - Wikipedia - */ -namespace BE { - -#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 0 -#include "./binaryconversionprivate.h" -#undef CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL -} // namespace BE - -/*! - * \brief Encapsulates binary conversion functions using the little endian byte order. - * \sa Endianness - Wikipedia - */ -namespace LE { - -#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 1 -#include "./binaryconversionprivate.h" -#undef CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL -} // namespace LE - /*! * \brief Returns the 8.8 fixed point representation converted from the specified 32-bit floating point number. */ @@ -191,6 +169,28 @@ CPP_UTILITIES_EXPORT constexpr std::uint64_t swapOrder(std::uint64_t value) #endif +/*! + * \brief Encapsulates binary conversion functions using the big endian byte order. + * \sa Endianness - Wikipedia + */ +namespace BE { + +#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 0 +#include "./binaryconversionprivate.h" +#undef CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL +} // namespace BE + +/*! + * \brief Encapsulates binary conversion functions using the little endian byte order. + * \sa Endianness - Wikipedia + */ +namespace LE { + +#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 1 +#include "./binaryconversionprivate.h" +#undef CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL +} // namespace LE + } // namespace CppUtilities #endif // CONVERSION_UTILITIES_BINARY_CONVERSION_H