MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / SwapFloatBytes

Function SwapFloatBytes

src/codec/memcomparable_format.h:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static inline void SwapFloatBytes(uchar *const dst, const uchar *const src) {
59 dst[0] = src[3];
60 dst[1] = src[2];
61 dst[2] = src[1];
62 dst[3] = src[0];
63}
64
65static inline void SwapDoubleBytes(uchar *const dst, const uchar *const src) {
66 dst[0] = src[7];

Callers 1

PackFloatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected