src/video/SDL_blit.c
changeset 1196 b81f54c3963f
parent 1052 68f607298ca9
child 1312 c9b51268668f
equal deleted inserted replaced
1195:bb6791b0a268 1196:b81f54c3963f
   114 	/* Blit is done! */
   114 	/* Blit is done! */
   115 	return(okay ? 0 : -1);
   115 	return(okay ? 0 : -1);
   116 }
   116 }
   117 
   117 
   118 #ifdef MMX_ASMBLIT
   118 #ifdef MMX_ASMBLIT
   119 static __inline__ void SDL_memcpyMMX(char* to,char* from,int len)
   119 static __inline__ void SDL_memcpyMMX(Uint8 *to, const Uint8 *from, int len)
   120 {
   120 {
   121 	int i;
   121 	int i;
   122 
   122 
   123 	for(i=0; i<len/8; i++) {
   123 	for(i=0; i<len/8; i++) {
   124 		__asm__ __volatile__ (
   124 		__asm__ __volatile__ (
   130 	}
   130 	}
   131 	if (len&7)
   131 	if (len&7)
   132 		SDL_memcpy(to, from, len&7);
   132 		SDL_memcpy(to, from, len&7);
   133 }
   133 }
   134 
   134 
   135 static __inline__ void SDL_memcpySSE(char* to,char* from,int len)
   135 static __inline__ void SDL_memcpySSE(Uint8 *to, const Uint8 *from, int len)
   136 {
   136 {
   137 	int i;
   137 	int i;
   138 
   138 
   139 	__asm__ __volatile__ (
   139 	__asm__ __volatile__ (
   140 	"	prefetchnta (%0)\n"
   140 	"	prefetchnta (%0)\n"