Classes | Defines

cl_endian.h File Reference

#include "../api_core.h"
Include dependency graph for cl_endian.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CL_Endian
 Endianess management class. More...

Defines

#define IS_SYSTEM_64BIT()   CL_Endian::is_system_64bit()
#define SWAP_IF_BIG(i)   if (CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i))
#define SWAP_IF_BIG_ALOT(i, times)   if (CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i), times)
#define SWAP_IF_LITTLE(i)   if (!CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i))
#define SWAP_IF_LITTLE_ALOT(i, times)   if (!CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i), times)