mirror of https://github.com/libsdl-org/SDL.git
testautomation_intrinsics.c (sse2): change _mm_store_pd to _mm_storeu_pd
fixes segmentation faults
This commit is contained in:
parent
7a54d363cf
commit
262b13431d
|
|
@ -215,7 +215,7 @@ SDL_TARGETING("sse") static void kernel_floats_add_sse(float *dest, const float
|
||||||
#if SDL_SSE2_INTRINSICS
|
#if SDL_SSE2_INTRINSICS
|
||||||
SDL_TARGETING("sse2") static void kernel_doubles_add_sse2(double *dest, const double *a, const double *b, size_t size) {
|
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) {
|
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) {
|
if (size) {
|
||||||
*dest = *a + *b;
|
*dest = *a + *b;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue