Add placeholder ReverseBytes for double

This commit is contained in:
DankParrot 2020-08-03 18:38:00 -07:00
parent 880374f98e
commit 5e425e402f
1 changed files with 3 additions and 0 deletions

View File

@ -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); }
}