Skip to content

Remove SSE4.1 segmentation, Sobel, statistic and texture alignment checks - #1065

Merged
ermig1979 merged 1 commit into
devfrom
cursor/sse41-stat-unaligned-29e6
Oct 6, 2026
Merged

ermig1979 merged 1 commit into
devfrom
cursor/sse41-stat-unaligned-29e6

Conversation

@ermig1979

Copy link
Copy Markdown
Owner

Always use unaligned SSE4.1 loads and stores in segmentation, Sobel, squared difference, statistic, stretch, and texture.

  • Drop memory alignment checks and the aligned/unaligned dispatch.
  • Call _mm_loadu_si128, _mm_storeu_si128, and _mm_loadu_ps directly instead of Load<false>() and Store<false>().
  • Call LoadNose3, LoadBody3, and LoadTail3 without an align template parameter. The step-only overloads already load with _mm_loadu_si128.
  • LoadNose5, LoadBody5, and LoadTail5 already have step-only overloads and are unused by these files.
Open in Web Open in Cursor 

…retch and texture alignment checks.

Always use unaligned SSE4.1 loads and stores, and call LoadNose3, LoadBody3 and LoadTail3 without an align parameter.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
@ermig1979
ermig1979 marked this pull request as ready for review October 6, 2026 10:37
@ermig1979
ermig1979 merged commit 58c5250 into dev Oct 6, 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