MCPcopy Create free account
hub / github.com/apache/trafficserver / convert

Function convert

lib/catch2/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.70
catch.hppFile · 0.70
almostEqualUlpsFunction · 0.70
convertMethod · 0.70

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected