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

Function AreAllInRange

tests/cpu/SSE_tests.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool AreAllInRange(const float* sseResult, const float lower_bound, const float upper_bound)
151{
152 return ((sseResult[0] > lower_bound) && (sseResult[0] < upper_bound)) &&
153 ((sseResult[1] > lower_bound) && (sseResult[1] < upper_bound)) &&
154 ((sseResult[2] > lower_bound) && (sseResult[2] < upper_bound)) &&
155 ((sseResult[3] > lower_bound) && (sseResult[3] < upper_bound));
156}
157
158bool AreAllClose(const float* sseResult, const float reference, const unsigned ulp_tolerance)
159{

Callers 1

OCIO_ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected