This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4314] memcpy performance problem
- From: "hermantenbrugge at home dot nl" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 28 Oct 2007 05:53:43 -0000
- Subject: [Bug libc/4314] memcpy performance problem
- References: <20070403212942.4314.hermantenbrugge@home.nl>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From hermantenbrugge at home dot nl 2007-10-28 05:53 -------
Subject: Re: memcpy performance problem
aj at suse dot de wrote:
> ------- Additional Comments From aj at suse dot de 2007-10-28 05:24 -------
> for i386 we use the file sysdeps/i386/i686/memcpy.
>
correct. This is the assembly file with the problem. We first copy bytes
until we the length is a multiple of 4 and then do the copy. What
happens with length not multiple of 4 is that we first copy some bytes
and then do the rest of the copy with unaligned memory accesses.
The routine that should be used is in: sysdeps/i386/i586/memcpy.S
In fact all sysdeps/i386/i586/* should be used for the i686.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4314
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.