testautomation_intrinsics.c (sse2): change _mm_store_pd to _mm_storeu_pd

fixes segmentation faults
This commit is contained in:
Ozkan Sezer 2023-03-21 14:56:56 +03:00 committed by Ozkan Sezer
parent 7a54d363cf
commit 262b13431d
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ SDL_TARGETING("sse") static void kernel_floats_add_sse(float *dest, const float
#if SDL_SSE2_INTRINSICS
SDL_TARGETING("sse2") static void kernel_doubles_add_sse2(double *dest, const double *a, const double *b, size_t size) {
for (; size >= 2; size -= 2, dest += 2, a += 2, b += 2) {
_mm_store_pd(dest, _mm_add_pd(_mm_loadu_pd(a), _mm_loadu_pd(b)));
_mm_storeu_pd(dest, _mm_add_pd(_mm_loadu_pd(a), _mm_loadu_pd(b)));
}
if (size) {
*dest = *a + *b;