This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: memmove optimization on X86_64
- From: Aurelien Jarno <aurelien at aurel32 dot net>
- To: insight insight <insight75 at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 06 May 2007 15:24:15 +0200
- Subject: Re: memmove optimization on X86_64
- References: <c32ecee70705051742v41867b86o504de9b103f4a184@mail.gmail.com> <c32ecee70705051752h39d43e89n634f85465ef2d6ab@mail.gmail.com>
insight insight a écrit :
> Hello,
> i use glibc 2.4 on X86_64 and in debugging a C program, i have looked
> at the code of memmove
> and I was quite surprise by the code produced. no inline function or
> macro and more disturbing
> byte by byte copy and not 64 bits by 64 bits copy....
memmove should still work when src and dest are shift by only one byte.
Doing 64 bits by 64 bits copy won't work in that case.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net