Fixed bug #736
Don't use the SSE cache instruction in MMX code if SSE isn't available. :) --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404326
This commit is contained in:
parent
777b877a72
commit
83fbb6981f
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue