MCPcopy Create free account
hub / github.com/apache/qpid-proton / convert

Function convert

tests/include/catch.hpp:11488–11493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11486namespace {
11487
11488 int32_t convert(float f) {
11489 static_assert(sizeof(float) == sizeof(int32_t), "Important ULP matcher assumption violated");
11490 int32_t i;
11491 std::memcpy(&i, &f, sizeof(f));
11492 return i;
11493 }
11494
11495 int64_t convert(double d) {
11496 static_assert(sizeof(double) == sizeof(int64_t), "Important ULP matcher assumption violated");

Callers 4

stringifyFunction · 0.85
catch.hppFile · 0.85
almostEqualUlpsFunction · 0.85
convertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected