00001 #ifndef L3SWAP_H
00002 #define L3SWAP_H
00003
00004 typedef unsigned int uint32 ;
00005 typedef unsigned short uint16 ;
00006 typedef unsigned char uint8 ;
00007
00008
00009 float l3Fswap(float swapped);
00010
00011 uint32 l3Swap32(uint32 in);
00012 uint16 l3Swap16(uint16 in);
00013
00014 void l3SwapBuffer(void *dest, void *src, unsigned int nDWords);
00015
00016 bool checkByteOrder(uint32 byte_order);
00017
00018 #ifndef swap32
00019 #define swap32(x) l3Swap32(x)
00020 #endif
00021
00022 #ifndef swap16
00023 #define swap16(x) l3Swap16(x)
00024 #endif
00025
00026 #ifndef fswap
00027 #define fswap(x) l3FSwap(x)
00028 #endif
00029
00030 #endif