Endian conversion convenience macros

Updated: April 19, 2023

Versions of QNX Neutrino endian conversion macros that provide more obvious names and correct types.

Description:

The macros that are non-_CONST cannot be used in all headers or for static initialization because in some architectures they end up executing code. The _CONST macros avoid this issue because they are processed by the pre-processor.

Definitions:

#define ENDIAN_HTOBE16(__x) 
#define ENDIAN_HTOBE32(__x) 
#define ENDIAN_HTOBE64(__x) 
#define ENDIAN_HTOBE16_CONST(__x) 
#define ENDIAN_HTOBE32_CONST(__x) 
#define ENDIAN_HTOBE64_CONST(__x) 
#define ENDIAN_BE16TOH(__x_be) 
#define ENDIAN_BE32TOH(__x_be) 
#define ENDIAN_BE64TOH(__x_be) 
#define ENDIAN_BE16TOH_CONST(__x_be) 
#define ENDIAN_BE32TOH_CONST(__x_be) 
#define ENDIAN_BE64TOH_CONST(__x_be) 
#define ENDIAN_HTOLE16(__x) 
#define ENDIAN_HTOLE32(__x) 
#define ENDIAN_HTOLE64(__x) 
#define ENDIAN_HTOLE16_CONST(__x_be) 
#define ENDIAN_HTOLE32_CONST(__x_be) 
#define ENDIAN_HTOLE64_CONST(__x_be) 
#define ENDIAN_LE16TOH(__x_le) 
#define ENDIAN_LE32TOH(__x_le) 
#define ENDIAN_LE64TOH(__x_le) 
#define ENDIAN_LE16TOH_CONST(__x_le) 
#define ENDIAN_LE32TOH_CONST(__x_le) 
#define ENDIAN_LE64TOH_CONST(__x_le)