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

Function bigEndianFloat

bindings/flow/Tuple.cpp:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43const uint8_t Tuple::VERSIONSTAMP_96_CODE = 0x33;
44
45static float bigEndianFloat(float orig) {
46 int32_t big = *(int32_t*)&orig;
47 big = bigEndian32(big);
48 return *(float*)&big;
49}
50
51static double bigEndianDouble(double orig) {
52 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