Common: Fix vector sse2_max_u16()

Fixes UV clamping in SSE2 build, e.g. Jumping Flash.
This commit is contained in:
Stenzek 2024-12-29 13:56:09 +10:00
parent 799f5bdf97
commit 5c3abb490d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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)