MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / ReinterpretBits

Method ReinterpretBits

tests/gtest/gtest.h:6728–6732  ·  view source on GitHub ↗

Reinterprets a bit pattern as a floating-point number. This function is needed to test the AlmostEquals() method.

Source from the content-addressed store, hash-verified

6726 //
6727 // This function is needed to test the AlmostEquals() method.
6728 static RawType ReinterpretBits(const Bits bits) {
6729 FloatingPoint fp(0);
6730 fp.u_.bits_ = bits;
6731 return fp.u_.value_;
6732 }
6733
6734 // Returns the floating-point number that represent positive infinity.
6735 static RawType Infinity() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected