![]() |
Multiscale Universal Interface
2.0
A Concurrent Framework for Coupling Heterogeneous Solvers
|
Support for dealing with big and little endian platforms. More...
#include <cstdint>
#include <endian.h>
Go to the source code of this file.
Namespaces | |
mui | |
mui::detail | |
Macros | |
#define | MUI_POSITIVE true |
#define | MUI_NEGATIVE false |
#define | MUI_INT_DEFINED MUI_NEGATIVE |
#define | MUI_CONVERT_FLOAT MUI_CONVERT_INT |
Support for dealing with big and little endian platforms.
Currently this only supports big and little endian platforms, if you're on something odder, then this wont work.
The primary export of this header is a template struct endian_traits - see below for a details
You can configure endianness and conversion by defining one of the following
(MUI_INT_BIG_ENDIAN ^ MUI_INT_LITTLE_ENDIAN) && (MUI_FLOAT_BIG_ENDIAN ^ MUI_FLOAT_LITTLE_ENDIAN)
where:
#define MUI_CONVERT_FLOAT MUI_CONVERT_INT |
#define MUI_INT_DEFINED MUI_NEGATIVE |
#define MUI_NEGATIVE false |
#define MUI_POSITIVE true |