Common: Fix vector sse2_max_u16()
Fixes UV clamping in SSE2 build, e.g. Jumping Flash.
This commit is contained in:
parent
799f5bdf97
commit
5c3abb490d
|
@ -60,7 +60,7 @@ ALWAYS_INLINE static __m128i sse2_min_u16(const __m128i m, const __m128i v)
|
|||
|
||||
ALWAYS_INLINE static __m128i sse2_max_u16(const __m128i m, const __m128i v)
|
||||
{
|
||||
return _mm_add_epi16(v, _mm_subs_epu16(v, m));
|
||||
return _mm_add_epi16(m, _mm_subs_epu16(v, m));
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static __m128i sse2_min_u32(const __m128i m, const __m128i v)
|
||||
|
|
Loading…
Reference in New Issue