src/SDL12_compat.c
changeset 83 3dc6727acc6b
parent 82 c5f7371d4fcc
child 84 df9e8ff61b45
equal deleted inserted replaced
82:c5f7371d4fcc 83:3dc6727acc6b
   832     retval = (int) SDL20_vsnprintf(text, maxlen, fmt, ap);
   832     retval = (int) SDL20_vsnprintf(text, maxlen, fmt, ap);
   833     va_end(ap);
   833     va_end(ap);
   834     return retval;
   834     return retval;
   835 }
   835 }
   836 
   836 
       
   837 DECLSPEC void * SDLCALL
       
   838 SDL_revcpy(void *dst, const void *src, size_t len)
       
   839 {
       
   840     /* this doesn't reverse the data...I think this was just a memcpy that
       
   841        was meant to be CPU-cache friendly if you knew you were working with
       
   842        data going backwards in memory, instead of jumping over pages to copy
       
   843        from the start...? Whatever, just do a memcpy here. */
       
   844     return SDL_memcpy(dst, src, len);
       
   845 }
       
   846 
       
   847 
   837 DECLSPEC SDL_bool SDLCALL
   848 DECLSPEC SDL_bool SDLCALL
   838 SDL_HasMMXExt(void)
   849 SDL_HasMMXExt(void)
   839 {
   850 {
   840     /* this isn't accurate, but SDL2 doesn't have this for some reason.
   851     /* this isn't accurate, but SDL2 doesn't have this for some reason.
   841         MMXExt is available in all SSE1 machines, except early Athlon chips,
   852         MMXExt is available in all SSE1 machines, except early Athlon chips,