Browse Source

testautomation_intrinsics.c (sse2): change _mm_store_pd to _mm_storeu_pd

fixes segmentation faults
Ozkan Sezer 2 years ago
parent
commit
262b13431d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testautomation_intrinsics.c

+ 1 - 1
test/testautomation_intrinsics.c

@@ -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;