MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / IsInfinity

Function IsInfinity

tests/cpu/SSE_tests.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool IsInfinity(float floatToTest)
53{
54 const float posinf = std::numeric_limits<float>::infinity();
55 const float neginf = -std::numeric_limits<float>::infinity();
56 return (posinf == floatToTest
57 || neginf == floatToTest);
58}
59
60void CheckFloat(const std::string& operation,
61 const float expected,

Callers 2

CheckFloatFunction · 0.85
AreAllInfinityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected