MCKL
Monte Carlo Kernel Library
Namespaces | Functions
byte_order.hpp File Reference
#include <mckl/internal/config.h>
#include <mckl/math/constants.hpp>
#include <array>
#include <climits>

Go to the source code of this file.

Namespaces

 mckl
 
 mckl::internal
 

Functions

bool mckl::internal::is_big_endian ()
 
bool mckl::internal::is_little_endian ()
 
template<int , int , typename U >
mckl::internal::swap_bytes (U, std::false_type)
 
template<int Bytes, int N, typename U >
mckl::internal::swap_bytes (U u, std::true_type)
 
template<int Bytes, typename T >
mckl::internal::swap_bytes (T x)
 
template<typename , typename T >
void mckl::internal::union_le (std::size_t, T *)
 
template<typename , typename T >
void mckl::internal::union_le (T &)