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

Function sse2_clamp

src/OpenColorIO/SSE2.h:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83#endif
84
85inline __m128 sse2_clamp(__m128 value, const __m128& maxValue)
86{
87 value = _mm_max_ps(value, _mm_setzero_ps());
88 return _mm_min_ps(value, maxValue);
89}
90
91static inline void sse2RGBATranspose_4x4(__m128 row0, __m128 row1, __m128 row2, __m128 row3,
92 __m128 &out_r, __m128 &out_g, __m128 &out_b, __m128 &out_a )

Callers 2

StoreMethod · 0.85
StoreMethod · 0.85

Calls 2

_mm_max_psFunction · 0.70
_mm_min_psFunction · 0.70

Tested by

no test coverage detected