39 #ifndef __EST_CUTILS_H__ 40 #define __EST_CUTILS_H__ 57 #define streq(X,Y) (strcmp(X,Y)==0) 69 #define EST_BIG_ENDIAN (((char *)&est_endian_loc)[0] == 0) 71 #define EST_LITTLE_ENDIAN (((char *)&est_endian_loc)[0] != 0) 72 #define EST_NATIVE_BO (EST_BIG_ENDIAN ? bo_big : bo_little) 73 #define EST_SWAPPED_BO (EST_BIG_ENDIAN ? bo_little : bo_big) 75 #define SWAPINT(x) ((((unsigned)x) & 0xff) << 24 | \ 76 (((unsigned)x) & 0xff00) << 8 | \ 77 (((unsigned)x) & 0xff0000) >> 8 | \ 78 (((unsigned)x) & 0xff000000) >> 24) 79 #define SWAPSHORT(x) ((((unsigned)x) & 0xff) << 8 | \ 80 (((unsigned)x) & 0xff00) >> 8) 95 #define Gof(a, b) (((a) > (b)) ? (a) : (b)) 97 #define Lof(a, b) (((a) < (b)) ? (a) : (b)) void swap_bytes_ushort(unsigned short *data, int length)
enum EST_bo_t str_to_bo(const char *boname)
void swap_bytes_uint(unsigned int *data, int length)
char * cmake_tmp_filename()
void swap_bytes_double(double *data, int length)
void swap_bytes_float(float *data, int length)
const char * bo_to_str(enum EST_bo_t bo)
void swapdouble(double *d)
void swap_bytes_short(short *data, int length)
const char *const est_tools_version
void swap_bytes_int(int *data, int length)
const char *const est_name
const char *const est_ostype
const char *const est_libdir