3 #include <netinet/in.h>
5 float fswap(
float swapped)
7 unsigned int* uintptr = (
unsigned int*) &swapped;
8 unsigned int uintvar = ntohl(*uintptr);
9 float* floatvar = (
float*)&uintvar;
13 UINT32 swap32(UINT32 in)
18 return (x&0xff000000) >> 24 | \
19 (x&0x00ff0000) >> 8 | \
20 (x&0x0000ff00) << 8 | \
25 UINT16 swap16(UINT16 in)
31 return (x&0xFF00) >> 8 | (x&0xFF) << 8 ;
34 bool checkByteOrder(UINT32 byte_order)
36 return ( byte_order == DAQ_RAW_FORMAT_ORDER );