Move `BE`/`LE` namespaces to the end so these functions can use previous helpers
This commit is contained in:
parent
b3fd365502
commit
3b2615fa62
|
@ -79,28 +79,6 @@
|
||||||
|
|
||||||
namespace CppUtilities {
|
namespace CppUtilities {
|
||||||
|
|
||||||
/*!
|
|
||||||
* \brief Encapsulates binary conversion functions using the big endian byte order.
|
|
||||||
* \sa <a href="http://en.wikipedia.org/wiki/Endianness">Endianness - Wikipedia</a>
|
|
||||||
*/
|
|
||||||
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 <a href="http://en.wikipedia.org/wiki/Endianness">Endianness - Wikipedia</a>
|
|
||||||
*/
|
|
||||||
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.
|
* \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
|
#endif
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Encapsulates binary conversion functions using the big endian byte order.
|
||||||
|
* \sa <a href="http://en.wikipedia.org/wiki/Endianness">Endianness - Wikipedia</a>
|
||||||
|
*/
|
||||||
|
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 <a href="http://en.wikipedia.org/wiki/Endianness">Endianness - Wikipedia</a>
|
||||||
|
*/
|
||||||
|
namespace LE {
|
||||||
|
|
||||||
|
#define CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL 1
|
||||||
|
#include "./binaryconversionprivate.h"
|
||||||
|
#undef CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL
|
||||||
|
} // namespace LE
|
||||||
|
|
||||||
} // namespace CppUtilities
|
} // namespace CppUtilities
|
||||||
|
|
||||||
#endif // CONVERSION_UTILITIES_BINARY_CONVERSION_H
|
#endif // CONVERSION_UTILITIES_BINARY_CONVERSION_H
|
||||||
|
|
Loading…
Reference in New Issue