This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: memmove optimization on X86_64


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


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