Fixed bug #736
authorSam Lantinga <slouken@libsdl.org>
Wed, 16 Dec 2009 03:02:31 +0000
changeset 357772024425b437
parent 3576 5ea08f1c29d0
child 3578 0d1b16ee0bca
Fixed bug #736

Don't use the SSE cache instruction in MMX code if SSE isn't available. :)
src/video/SDL_blit_copy.c
     1.1 --- a/src/video/SDL_blit_copy.c	Wed Dec 16 02:08:59 2009 +0000
     1.2 +++ b/src/video/SDL_blit_copy.c	Wed Dec 16 03:02:31 2009 +0000
     1.3 @@ -65,7 +65,9 @@
     1.4  
     1.5      __m64 values[8];
     1.6      for (i = len / 64; i--;) {
     1.7 +#ifdef __SSE__
     1.8          _mm_prefetch(src, _MM_HINT_NTA);
     1.9 +#endif
    1.10          values[0] = *(__m64 *) (src + 0);
    1.11          values[1] = *(__m64 *) (src + 8);
    1.12          values[2] = *(__m64 *) (src + 16);