comparison src/video/SDL_blit.c @ 1196:b81f54c3963f

Fixed compile warnings with gcc 4
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Dec 2005 14:21:17 +0000
parents 68f607298ca9
children c9b51268668f
comparison
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"