57 return ((x<<8)|(x>>8));
67 return ((x << 24) | ((x << 8) & (0xFF0000)) | ((x >> 8) & (0xFF00)) | (x >> 24));
83 lo = (uint32_t)(x&0xFFFFFFFF);
85 hi = (uint32_t)(x&0xFFFFFFFF);
111 tmpFloat.valU =
sbgSwap32(tmpFloat.valU);
116 return tmpFloat.valF;
132 tmpDouble.valF = val;
133 tmpDouble.valU =
sbgSwap64(tmpDouble.valU);
138 return tmpDouble.valF;
Main header for the SBG Systems common C library.
#define SBG_INLINE
Definition: sbgDefines.h:227
SBG_INLINE uint64_t sbgSwap64(uint64_t x)
Definition: sbgSwap.h:76
SBG_INLINE float sbgSwapFloat(float val)
Definition: sbgSwap.h:103
SBG_INLINE uint32_t sbgSwap32(uint32_t x)
Definition: sbgSwap.h:65
SBG_INLINE double sbgSwapDouble(double val)
Definition: sbgSwap.h:125
SBG_INLINE uint16_t sbgSwap16(uint16_t x)
Definition: sbgSwap.h:55
Definition: sbgTypes.h:149
Definition: sbgTypes.h:139