MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / convert

Function convert

src/catch2/catch.hpp:11481–11486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11479namespace {
11480
11481 int32_t convert(float f) {
11482 static_assert(sizeof(float) == sizeof(int32_t), "Important ULP matcher assumption violated");
11483 int32_t i;
11484 std::memcpy(&i, &f, sizeof(f));
11485 return i;
11486 }
11487
11488 int64_t convert(double d) {
11489 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