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

Function CheckPower

tests/cpu/SSE_tests.cpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void CheckPower(const float base, const float exponent)
89{
90 const float cpuResult = powf(base, exponent);
91
92 __m128 mm_sseResult = OCIO::ssePower(_mm_set1_ps(base), _mm_set1_ps(exponent));
93
94 float sseResult[4];
95 _mm_storeu_ps(sseResult, mm_sseResult);
96
97 std::ostringstream oss;
98 oss << "power(" << base << " , " << exponent << ")";
99 std::string operation = oss.str();
100
101 CheckSSE(operation, cpuResult, sseResult, 12);
102}
103
104} // anon.
105

Callers 1

OCIO_ADD_TESTFunction · 0.85

Calls 2

ssePowerFunction · 0.85
CheckSSEFunction · 0.85

Tested by

no test coverage detected