From: Mike Frysinger Date: Thu, 8 Oct 2009 17:30:49 -0400 Subject: [U-Boot] [PATCH V2 0/3] make memcpy and memset faster In-Reply-To: References: Message-ID: <200910081730.51010.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 08 October 2009 07:29:51 Alessandro Rubini wrote: > Similarly, I'm not interested in "4 bytes at a time, then 1 at a time" > as it's quite a corner case. If such optimizations are really useful, > then we'd better have hand-crafted assembly for each arch, possibly > lifted from glibc. why ? it's trivial to implement with little code impact. have your code run while the len is larger than 4 (sizeof-whatever), then fall through to the loop that runs while the len is larger than 0 instead of immediately returning. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20091008/1c47d9e6/attachment.pgp