Skip to content

Commit

Permalink
Common: Fix vector sse2_max_u16()
Browse files Browse the repository at this point in the history
Fixes UV clamping in SSE2 build, e.g. Jumping Flash.
  • Loading branch information
stenzek committed Dec 29, 2024
1 parent 799f5bd commit 5c3abb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/gsvector_sse.h
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 5c3abb4

Please # to comment.