diff --git a/src/util/ByteUtil.h b/src/util/ByteUtil.h index 1a45e5c..bc4c0ee 100644 --- a/src/util/ByteUtil.h +++ b/src/util/ByteUtil.h @@ -27,4 +27,7 @@ namespace Feather inline int16_t ReverseBytes(int16_t n) { return int16_t(ReverseBytes(uint16_t(n))); } inline int32_t ReverseBytes(int32_t n) { return int32_t(ReverseBytes(uint32_t(n))); } inline int64_t ReverseBytes(int64_t n) { return int64_t(ReverseBytes(uint64_t(n))); } + + // FIXME: this maybe very wrong + inline double ReverseBytes(double d) { return (double)ReverseBytes((uint64_t)d); } } \ No newline at end of file