MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / convert

Function convert

extern/Catch2/catch.hpp:11486–11491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

stringifyFunction · 0.70
catch.hppFile · 0.70
almostEqualUlpsFunction · 0.70
convertMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected