LIBMATIO API 1.3.4
Defines | Functions
endian.c File Reference

Functions to handle endian specifics. More...

Defines

#define swap(a, b)   a^=b;b^=a;a^=b
 swap the bytes a and b

Functions

double Mat_doubleSwap (double *a)
 swap the bytes of a 4 or 8 byte double-precision float
float Mat_floatSwap (float *a)
 swap the bytes of a 4 byte single-precision float
mat_int16_t Mat_int16Swap (mat_int16_t *a)
 swap the bytes of a 16-bit signed integer
mat_int32_t Mat_int32Swap (mat_int32_t *a)
 swap the bytes of a 32-bit signed integer
mat_int64_t Mat_int64Swap (mat_int64_t *a)
 swap the bytes of a 64-bit signed integer
mat_uint16_t Mat_uint16Swap (mat_uint16_t *a)
 swap the bytes of a 16-bit unsigned integer
mat_uint32_t Mat_uint32Swap (mat_uint32_t *a)
 swap the bytes of a 32-bit unsigned integer
mat_uint64_t Mat_uint64Swap (mat_uint64_t *a)
 swap the bytes of a 64-bit unsigned integer

Detailed Description