Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug #736
Browse files Browse the repository at this point in the history
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 755b845
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/SDL_blit_copy.c
Expand Up @@ -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);
Expand Down

0 comments on commit 755b845

Please sign in to comment.