Skip to content

Fix a mismatch between AVX2 and scalar FDCT paths - #40

Merged
vstroebel merged 1 commit into
vstroebel:mainfrom
Shnatsel:fix-avx2-fdct-mismatch
Oct 25, 2026
Merged

vstroebel merged 1 commit into
vstroebel:mainfrom
Shnatsel:fix-avx2-fdct-mismatch

Conversation

@Shnatsel

Copy link
Copy Markdown
Contributor

The AVX2 code was using _mm256_set1_epi32 but then interpreted the result as a vector of i16 instead of i32. This caused the values to become [2, 0, 2, 0, ...] instead of [2, 2, 2, 2, ...] as intended and done in the scalar path.

This PR adds a test demonstrating the issue, then fixes it.

@vstroebel
vstroebel merged commit 8fe7e7b into vstroebel:main Oct 25, 2026
7 checks passed
@vstroebel

Copy link
Copy Markdown
Owner

Because I'm planning to make the main branch heading towards 0.8 with some minor breaking changes I've back ported this with c9b6309 to a 0.7 branch that will be release as 0.7.2

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