Skip to content

Remove SSE4.1 BGRA conversion alignment checks - #1054

Merged
ermig1979 merged 1 commit into
devfrom
cursor/sse41-bgra-unaligned-533a
Oct 2, 2026
Merged

ermig1979 merged 1 commit into
devfrom
cursor/sse41-bgra-unaligned-533a

Conversation

@ermig1979

Copy link
Copy Markdown
Owner

Always use unaligned _mm_loadu_si128 and _mm_storeu_si128 in the SSE4.1 BGRA conversion paths instead of Load/Store alignment helpers.

  • Drop pointer and stride alignment checks in SimdSse41BgraToBgr.cpp and SimdSse41BgraToGray.cpp.
  • Load and store BGRA, BGR, RGB, RGBA, and gray blocks with unaligned SSE4.1 intrinsics.
  • Keep the scalar fallback for widths below the SSE block size.
Open in Web Open in Cursor 

Always use unaligned _mm_loadu_si128 and _mm_storeu_si128 instead of Load/Store alignment helpers.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
@ermig1979
ermig1979 marked this pull request as ready for review October 2, 2026 15:10
@ermig1979
ermig1979 merged commit be0831a into dev Oct 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants