Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed bug #736

Don't use the SSE cache instruction in MMX code if SSE isn't available. :)
  • Loading branch information
slouken committed Dec 16, 2009
1 parent 4d4d63a commit 755b84504a95edf1ad8f6c84c6d71d098856dbce
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/video/SDL_blit_copy.c
@@ -65,7 +65,9 @@ SDL_memcpyMMX(Uint8 * dst, const Uint8 * src, int len)

__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);

0 comments on commit 755b845

Please sign in to comment.