comparison src/video/SDL_blit_copy.c @ 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 99210400e8b9
children f7b03b6838cb
comparison
equal deleted inserted replaced
3576:5ea08f1c29d0 3577:72024425b437
63 { 63 {
64 int i; 64 int i;
65 65
66 __m64 values[8]; 66 __m64 values[8];
67 for (i = len / 64; i--;) { 67 for (i = len / 64; i--;) {
68 #ifdef __SSE__
68 _mm_prefetch(src, _MM_HINT_NTA); 69 _mm_prefetch(src, _MM_HINT_NTA);
70 #endif
69 values[0] = *(__m64 *) (src + 0); 71 values[0] = *(__m64 *) (src + 0);
70 values[1] = *(__m64 *) (src + 8); 72 values[1] = *(__m64 *) (src + 8);
71 values[2] = *(__m64 *) (src + 16); 73 values[2] = *(__m64 *) (src + 16);
72 values[3] = *(__m64 *) (src + 24); 74 values[3] = *(__m64 *) (src + 24);
73 values[4] = *(__m64 *) (src + 32); 75 values[4] = *(__m64 *) (src + 32);