Skip to content

make memcpy and memset 32-bit copies

Alessandro Rubini u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3memcpy: use 32-bit copies if possiblelib_generic/string.c+9 -04 replies
1/3memcpy: use 32-bit copies if possible+0 -00 replies
1/3memcpy: use 32-bit copies if possible+0 -06 replies
2/3memset: use 32-bit copies if possiblelib_generic/string.c+14 -01 reply
3/3lcd: remove '#if 0' 32-bit scroll, now memcpy does itcommon/lcd.c+0 -210 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAndrea Gallo
1/3A-b
1/3A-b
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/3] make memcpy and memset 32-bit copies

I've added 32-bit lcd to the Nomadik (not submitted yet), and I found the scroll to be very slow, as the screen is big.

Instead of activating the "if 0" stanza for 32-bit scroll in lcd.c, I'd better have a faster memcpy/memset globally. So this patch set adds 32-bit memcpy and memset and removes the "#if 0" part in the scroll function. For me it's 4 times faster ("help" from 14s to 3.5s).

I agree I should use 8-bits in u-boot, but the speedup of 32bit memcpy/memset is there regardless, as most users are 32-bit aligned anyways.

Alessandro Rubini (3):
memcpy: use 32-bit copies if possible
memset: use 32-bit copies if possible
lcd: remove '#if 0' 32-bit scroll, now memcpy does it

 common/lcd.c         |   21 ---------------------
 lib_generic/string.c |   27 +++++++++++++++++++++++++--
 2 files changed, 25 insertions(+), 23 deletions(-)