[ECOS] memmove?

Jonathan Larmour jlarmour@redhat.com
Thu Jun 7 09:11:00 GMT 2001


Hiroshi Lockheimer wrote:
> 
> Hi there,
> 
> There appears to be an optimized (for speed) version of memcpy in infra,
> but nothing for memmove (I've only been able to find memmove in libc).
> 
> Just curious if there's a reason for this?  Any pointers on where I can
> get a fast memmove?

memcpy is in infra because it's needed all the time. Both memcpy and
memmove are as optimized as the other.

You'll find that the compiler will frequently supply its own version of
memmove anyway - it is a gcc builtin. This version tends to be highly
optimized for the architecture.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/



More information about the Ecos-discuss mailing list