This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: memmove?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]