#include <algorithm>
#include <array>
#include <climits>
|
| | embutil |
| | Embedded framework utility functions and classes.
|
| |
|
| template<class T > |
| constexpr std::enable_if< std::is_unsigned< T >::value, T >::type | embutil::byteswap (T i, T j=0u, std::size_t n=0u) noexcept |
| | Recursive constexpr byteswap implementation without C++17 fold expressions. More...
|
| |
| template<typename T > |
| void | embutil::SwapEndian (T &val, typename std::enable_if< std::is_arithmetic< T >::value, std::nullptr_t >::type unused=nullptr) noexcept |
| | Non-constexpr Robust Endian Swap. More...
|
| |
| template<typename T > |
| void | embutil::SwapEndian_UB (T &val) noexcept |
| | Endian swap using undefined behavior. More...
|
| |