framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Constant Groups | Macros | Enumerations
endian.hpp File Reference

Endianness definitions. More...

#include <framework/common/byte_swap.hpp>
#include <framework/common/word_swap.hpp>
#include <framework/common/endian.inl>

Go to the source code of this file.

Namespaces

 framework
 Framework namespace.
 

Constant Groups

 framework
 Framework namespace.
 

Macros

#define FRAMEWORK_BIG_ENDIAN   1
 Big endian constant.
 
#define FRAMEWORK_LITTLE_ENDIAN   2
 Little endian constant.
 
#define FRAMEWORK_PDP_ENDIAN   3
 PDP (middle) endian constant.
 
#define FRAMEWORK_HOST_ENDIANNESS
 Host endianness. More...
 
#define FRAMEWORK_HOST_FLOAT_ENDIANNESS
 Host float endianness. More...
 

Enumerations

enum  framework::byte_order
 Byte order alias. More...
 

Detailed Description

Endianness definitions.

Todo:
A common runtime test to verify the endianness of the machine actually matches the definitions provided here should be added.

Macro Definition Documentation

#define FRAMEWORK_HOST_ENDIANNESS

Host endianness.

Defines the host endianness assumed by this framework. This value may be defined explicitly or deduced from a platform-specific package like endian.h. Must be set to one of the FRAMEWORK_*_ENDIAN macro values provides in this documentation.

#define FRAMEWORK_HOST_FLOAT_ENDIANNESS

Host float endianness.

Defines the host floating point endianness assumed by this framework. This value may be defined explicitly or deduced from a platform-specific package like endian.h. Must be set to one of the FRAMEWORK_*_ENDIAN macro values provides in this documentation.