26#define __BIG_ENDIAN 4321
27#define __LITTLE_ENDIAN 1234
28#define __BYTE_ORDER __LITTLE_ENDIAN
33#if __BYTE_ORDER == __LITTLE_ENDIAN
35#define SWAP_OUT(x) (x)
38#define SWAP_IN(x) bswap_32(x)
39#define SWAP_OUT(x) bswap_32(x)
42#define SWAP_IN(x) bswap32(x)
43#define SWAP_OUT(x) bswap32(x)
44#elif HAVE_SYS_ENDIAN_H
45#include <sys/endian.h>
46#define SWAP_IN(x) le32toh(x)
47#define SWAP_OUT(x) htole32(x)
49#error "Need to know how to convert between native and little endian byteorder"
60static __inline__
void packints(
char *buf,
const uint32_t a,
const uint32_t b)
unsigned int uint32_t
Definition: coda.h:105
#define SWAP_OUT(x)
Definition: rwcdb_pack.h:35
#define SWAP_IN(x)
Definition: rwcdb_pack.h:34
Definition: rwcdb_pack.h:55
uint32_t a
Definition: rwcdb_pack.h:56
uint32_t b
Definition: rwcdb_pack.h:57