/****************************************************************************** $ID$ The following functions memory copy big-endian data to little-endian data. *****************************************************************************/ #include #include "config.h" #include "EndianSwap/mem.h" #include "EndianSwap/swapint.h" #include "EndianSwap/swapfloat.h" /****************************************************************************** ES_memcpy_short ############### Copy big-endian short values to little-endian short values. The copy is done like the standard memcpy function. IN: const short * src: pointer to the memory space to be copied size_t count: number of short values to copy OUT: short * dest : pointer to the destination space memory. RETURN: short * : pointer to dest *****************************************************************************/ short * ES_memcpy_short(short * dest, const short * src, size_t count) { memcpy(dest, src, count*sizeof(short)); { int i; for(i=0; i