[U-Boot] [PATCH V2 0/3] make memcpy and memset faster
Mike Frysinger
vapier at gentoo.org
Thu Oct 8 23:30:49 CEST 2009
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
More information about the U-Boot
mailing list