Skip to content

Commit

Permalink
tentative to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
itzpr3d4t0r committed Mar 31, 2024
1 parent a61f6f1 commit efd89a1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src_c/simd_blitters_sse2.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,6 @@ alphablit_alpha_sse2_argb_no_surf_alpha(SDL_BlitInfo *info)
mm_src_alpha = _mm_and_si128(mm_src, mm_alpha_mask);
mm_dst_alpha = _mm_and_si128(mm_dst, mm_alpha_mask);

__m128i mask = _mm_cmpeq_epi32(mm_dst_alpha, mm_zero);

mm_src_alpha = _mm_srli_si128(mm_src_alpha, 3);
mm_dst_alpha = _mm_srli_si128(mm_dst_alpha, 3);
mm_res_a = _mm_add_epi16(mm_src_alpha, mm_dst_alpha);
Expand Down Expand Up @@ -400,9 +398,6 @@ alphablit_alpha_sse2_argb_no_surf_alpha(SDL_BlitInfo *info)
mm_res_pixels = _mm_and_si128(mm_res_pixels, mm_rgb_mask);
mm_res_pixels = _mm_or_si128(mm_res_pixels, mm_res_a);

mm_res_pixels =
pg_mm_blendv_epi8(mm_res_pixels, mm_src, mask);

_mm_storeu_si128(dstp128, mm_res_pixels);
srcp128++;
dstp128++;
Expand Down

0 comments on commit efd89a1

Please sign in to comment.