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

Function AreAllClose

tests/cpu/SSE_tests.cpp:158–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158bool AreAllClose(const float* sseResult, const float reference, const unsigned ulp_tolerance)
159{
160 for (unsigned i = 0; i < 4; ++i)
161 {
162 if (GetULPDifference(sseResult[i], reference) > ulp_tolerance)
163 {
164 return false;
165 }
166 }
167 return true;
168}
169
170std::string GetOperation(const char* fct, const float arg1)
171{

Callers 1

OCIO_ADD_TESTFunction · 0.85

Calls 1

GetULPDifferenceFunction · 0.85

Tested by

no test coverage detected