]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/stdint.hxx
Update doxgen config and some comments.
[simgear.git] / simgear / misc / stdint.hxx
index f90734edc6eb6c49e61de814c9a425620fa0b5ce..94fbd60a50db759b6b3687e053cd03d20faa5440 100644 (file)
@@ -84,6 +84,9 @@ inline bool sgIsBigEndian() {
     return (*((char *) &sgEndianTest ) == 0);
 }
 
+inline void sgEndianSwap(int32_t *x) { *x = (int32_t) sg_bswap_32((int32_t) *x); }
+inline void sgEndianSwap(float *x) { *x = (float) sg_bswap_32((float) *x); }
+
 inline void sgEndianSwap(uint16_t *x) { *x = sg_bswap_16(*x); }
 inline void sgEndianSwap(uint32_t *x) { *x = sg_bswap_32(*x); }
 inline void sgEndianSwap(uint64_t *x) { *x = sg_bswap_64(*x); }