Add placeholder ReverseBytes for double
This commit is contained in:
parent
880374f98e
commit
5e425e402f
|
@ -27,4 +27,7 @@ namespace Feather
|
||||||
inline int16_t ReverseBytes(int16_t n) { return int16_t(ReverseBytes(uint16_t(n))); }
|
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 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))); }
|
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); }
|
||||||
}
|
}
|
Loading…
Reference in New Issue