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

Alessandro Rubini rubini-list at gnudd.com
Wed Oct 7 10:44:12 CEST 2009


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(-)


More information about the U-Boot mailing list