mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-08 15:43:05 +00:00
SDL_blit_copy: Don't call potentially FPU using SDL_memcpy in SDL_memcpyMMX
This commit is contained in:
parent
37c9329db2
commit
9ada9daf51
2 changed files with 6 additions and 5 deletions
|
|
@ -56,7 +56,7 @@ static SDL_INLINE void SDL_TARGETING("sse") SDL_memcpySSE(Uint8 *dst, const Uint
|
|||
#endif
|
||||
static SDL_INLINE void SDL_TARGETING("mmx") SDL_memcpyMMX(Uint8 *dst, const Uint8 *src, int len)
|
||||
{
|
||||
const int remain = (len & 63);
|
||||
int remain = len & 63;
|
||||
int i;
|
||||
|
||||
__m64 *d64 = (__m64 *)dst;
|
||||
|
|
@ -78,7 +78,11 @@ static SDL_INLINE void SDL_TARGETING("mmx") SDL_memcpyMMX(Uint8 *dst, const Uint
|
|||
|
||||
if (remain) {
|
||||
const int skip = len - remain;
|
||||
SDL_memcpy(dst + skip, src + skip, remain);
|
||||
dst += skip;
|
||||
src += skip;
|
||||
while (remain--) {
|
||||
*dst++ = *src++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue