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

Function AbsoluteDifference

tests/gpu/GPUUnitTest.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 inline bool AbsoluteDifference(float x1, float x2, float & diff)
87 {
88 const float thisDiff = fabs(x2 - x1);
89 if (thisDiff > diff)
90 {
91 diff = thisDiff;
92 return true;
93 }
94 return false;
95 }
96
97 inline bool RelativeDifference(float x1, float x2, float min_x1, float & diff)
98 {

Callers 1

ComputeDiffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected