[SDL] [PATCH] Re: SDL_memcpy variants used in SDL_BlitCopy

Ryan C. Gordon icculus at clutteredmind.org
Tue Sep 13 15:25:01 PDT 2005

>  I mean, wouldn't you think the authors of your's system C library would do 
> all possible optmizations possible? If some systems don't, maybe you should 
> send 'em a patch or, in last case, make your own memcpy(), if they are closed 
> systems.

We did make our own memcpy for closed systems.  :)

Linux's C library's memcpy sucks badly (or at least did when I last
checked some time ago).

Apple's C runtime, however, is hand-tuned for every CPU they support, so
you are less likely to beat it, and if you do, you'll lose to it on some
other generation of chips.

I assume Microsoft's is similar to Apple's on all the popular chips, but
haven't checked.


More information about the SDL mailing list