MCPcopy Create free account
hub / github.com/apple/foundationdb / bigEndianFloat

Function bigEndianFloat

fdbclient/Tuple.cpp:29–33  ·  view source on GitHub ↗

TODO: Many functions copied from bindings/flow/Tuple.cpp. Merge at some point.

Source from the content-addressed store, hash-verified

27
28// TODO: Many functions copied from bindings/flow/Tuple.cpp. Merge at some point.
29static float bigEndianFloat(float orig) {
30 int32_t big = *(int32_t*)&orig;
31 big = bigEndian32(big);
32 return *(float*)&big;
33}
34
35static double bigEndianDouble(double orig) {
36 int64_t big = *(int64_t*)&orig;

Callers 2

Tuple.cppFile · 0.70
getFloatMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected