Go to the documentation of this file.
35 #include "../api_core.h"
59 static void swap(
void *data,
int type_size,
int total_times=1);
67 static bool is_system_big();
71 static bool is_system_64bit();
76 #define SWAP_IF_BIG(i) if (CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i))
77 #define SWAP_IF_LITTLE(i) if (!CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i))
79 #define SWAP_IF_BIG_ALOT(i, times) if (CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i), times)
80 #define SWAP_IF_LITTLE_ALOT(i, times) if (!CL_Endian::is_system_big()) CL_Endian::swap(&i, sizeof(i), times)
82 #define IS_SYSTEM_64BIT() CL_Endian::is_system_64bit()