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

Function ValidateNan

tests/gpu/GPUUnitTest.cpp:60–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 inline LimitsDiff ValidateNan(float x1, float x2)
61 {
62 if (!std::isnan(x1))
63 {
64 if (!std::isnan(x2))
65 {
66 return NOT_APPLICABLE;
67 }
68 else
69 {
70 return INCONSISTANT;
71 }
72 }
73 else
74 {
75 if (std::isnan(x2))
76 {
77 return CONSISTANT;
78 }
79 else
80 {
81 return INCONSISTANT;
82 }
83 }
84 }
85
86 inline bool AbsoluteDifference(float x1, float x2, float & diff)
87 {

Callers 1

DiffComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected