Skip to content

fix: make simd4f::sum() consistent across all SIMD paths - #3172

Merged
davisking merged 1 commit into
davisking:masterfrom
lippinj:upstream-fix-4
Oct 17, 2026
Merged

davisking merged 1 commit into
davisking:masterfrom
lippinj:upstream-fix-4

Conversation

@lippinj

@lippinj lippinj commented Oct 16, 2026

Copy link
Copy Markdown

The SSE2 path used _mm_movehl_ps which gives a different result from the SSE3/AVX hadd path for certain inputs. The NEON path used vadd_f32 instead of vpadd_f32, likewise giving different results. Fix both to match the SSE3 behaviour.

The SSE2 path used _mm_movehl_ps which gives a different result from
the SSE3/AVX hadd path for certain inputs. The NEON path used vadd_f32
instead of vpadd_f32, likewise giving different results. Fix both to
match the SSE3 behaviour.

Copy link
Copy Markdown
Owner

Thanks @lippinj for making the SIMD reduction grouping consistent across these backends. I checked the grouping and downstream FHOG behavior; this looks good as submitted.

@davisking
davisking merged commit 7828f80 into davisking:master Oct 17, 2026
13 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