MCPcopy Create free account
hub / github.com/Profactor/cv-plot / convert

Function convert

CvPlot/ext/catch2/inc/catch.hpp:11315–11320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11313namespace {
11314
11315 int32_t convert(float f) {
11316 static_assert(sizeof(float) == sizeof(int32_t), "Important ULP matcher assumption violated");
11317 int32_t i;
11318 std::memcpy(&i, &f, sizeof(f));
11319 return i;
11320 }
11321
11322 int64_t convert(double d) {
11323 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