src/video/SDL_blit.c
changeset 880 9ef41050100c
parent 769 b8d311d90021
child 882 9301b429c99f
     1.1 --- a/src/video/SDL_blit.c	Thu Apr 08 21:13:14 2004 +0000
     1.2 +++ b/src/video/SDL_blit.c	Sun Apr 11 19:47:28 2004 +0000
     1.3 @@ -37,7 +37,11 @@
     1.4  #include "SDL_pixels_c.h"
     1.5  #include "SDL_memops.h"
     1.6  
     1.7 -#if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT)
     1.8 +#if (defined(i386) || defined(__x86_64__)) && defined(__GNUC__) && defined(USE_ASMBLIT)
     1.9 +#define MMX_ASMBLIT
    1.10 +#endif
    1.11 +
    1.12 +#if defined(MMX_ASMBLIT)
    1.13  #include "SDL_cpuinfo.h"
    1.14  #include "mmx.h"
    1.15  #endif
    1.16 @@ -111,7 +115,7 @@
    1.17  	return(okay ? 0 : -1);
    1.18  }
    1.19  
    1.20 -#if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT)
    1.21 +#ifdef MMX_ASMBLIT
    1.22  void SDL_memcpyMMX(char* to,char* from,int len)
    1.23  {
    1.24  	int i;
    1.25 @@ -165,7 +169,7 @@
    1.26  	dst = info->d_pixels;
    1.27  	srcskip = w+info->s_skip;
    1.28  	dstskip = w+info->d_skip;
    1.29 -#if defined(i386) && defined(__GNUC__) && defined(USE_ASMBLIT)
    1.30 +#ifdef MMX_ASMBLIT
    1.31  	if(SDL_HasSSE())
    1.32  	{
    1.33  		while ( h-- ) {