changeset 3577:72024425b437

Fixed bug #736 Don't use the SSE cache instruction in MMX code if SSE isn't available. :)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 16 Dec 2009 03:02:31 +0000
parents 5ea08f1c29d0
children 0d1b16ee0bca
files src/video/SDL_blit_copy.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_blit_copy.c	Wed Dec 16 02:08:59 2009 +0000
+++ b/src/video/SDL_blit_copy.c	Wed Dec 16 03:02:31 2009 +0000
@@ -65,7 +65,9 @@
 
     __m64 values[8];
     for (i = len / 64; i--;) {
+#ifdef __SSE__
         _mm_prefetch(src, _MM_HINT_NTA);
+#endif
         values[0] = *(__m64 *) (src + 0);
         values[1] = *(__m64 *) (src + 8);
         values[2] = *(__m64 *) (src + 16);