include/SDL_stdinc.h
branchSDL-1.2
changeset 4020 33d34b7ce689
parent 3998 098ac044cd2f
child 4100 ad8bdb215737
equal deleted inserted replaced
4019:fcf5834bdac3 4020:33d34b7ce689
   236 #define SDL_memset      memset
   236 #define SDL_memset      memset
   237 #else
   237 #else
   238 extern DECLSPEC void * SDLCALL SDL_memset(void *dst, int c, size_t len);
   238 extern DECLSPEC void * SDLCALL SDL_memset(void *dst, int c, size_t len);
   239 #endif
   239 #endif
   240 
   240 
   241 /* We can count on memset existing on Mac OS X and being well-tuned. */
   241 #if defined(__GNUC__) && defined(i386)
   242 #if defined(__MACH__) && defined(__APPLE__)
       
   243 #define SDL_memset4(dst, val, len) memset(dst, val, (len)*4)
       
   244 #elif defined(__GNUC__) && defined(i386)
       
   245 #define SDL_memset4(dst, val, len)				\
   242 #define SDL_memset4(dst, val, len)				\
   246 do {								\
   243 do {								\
   247 	int u0, u1, u2;						\
   244 	int u0, u1, u2;						\
   248 	__asm__ __volatile__ (					\
   245 	__asm__ __volatile__ (					\
   249 		"cld\n\t"					\
   246 		"cld\n\t"					\