This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: memmove?
- To: Hiroshi Lockheimer <hiroshi at letterp dot com>
- Subject: Re: [ECOS] memmove?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 07 Jun 2001 17:11:22 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <Pine.LNX.4.10.10106061219470.10153-100000@p.letterp.com>
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/