Skip to content

Fix unaligned load of m128 floats in ArrayMath::multiplyAccumulate#551

Open
granitrocky wants to merge 1 commit intoValveSoftware:masterfrom
granitrocky:fix_unaligned_floats
Open

Fix unaligned load of m128 floats in ArrayMath::multiplyAccumulate#551
granitrocky wants to merge 1 commit intoValveSoftware:masterfrom
granitrocky:fix_unaligned_floats

Conversation

@granitrocky
Copy link
Copy Markdown

Fix for #546

On linux, this can sometimes cause a segfault when the data is not 16 byte aligned. The other loads are all unaligned, but the final load was expecting aligned data, causing a segfault on linux. On windows, it seems this was not strictly enforced by MSVC, so the loads worked just fine.

@granitrocky granitrocky changed the title Fix unaligned load of m128 floats Fix unaligned load of m128 floats in ArrayMath::multiplyAccumulate Apr 20, 2026
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.

1 participant