| 58 | } |
| 59 | |
| 60 | void CheckFloat(const std::string& operation, |
| 61 | const float expected, |
| 62 | const float actual, |
| 63 | const unsigned precision) |
| 64 | { |
| 65 | |
| 66 | if ((IsInfinity(expected) && IsInfinity(actual)) || |
| 67 | (OCIO::IsNan(expected) && OCIO::IsNan(actual))) |
| 68 | { |
| 69 | return; |
| 70 | } |
| 71 | |
| 72 | const float rtol = powf(2.f, -((float)precision)); |
| 73 | OCIO_CHECK_ASSERT_MESSAGE(OCIO::EqualWithAbsError(expected, actual, rtol), |
| 74 | GetErrorMessage(operation, expected, actual)); |
| 75 | } |
| 76 | |
| 77 | void CheckSSE(const std::string & operation, |
| 78 | float expected, |
no test coverage detected