u-boot/lib
Mike Frysinger 64419e4751 print_buffer: optimize & shrink
Applying a little creative format string allows us to shrink the initial
data read & display loop by only calling printf once.  Re-using the local
data buffer to generate the string we want to display then allows us to
output everything with just one printf call instead of multiple calls to
the putc function.

The local stack buffer needs increasing by 1 byte, but the resulting code
shrink and speed up is worth it I think.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-08-09 00:28:38 +02:00
..
libfdt Move libfdt/ into lib/ 2010-04-13 09:13:04 +02:00
lzma Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
lzo Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
addr_map.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_crctable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_decompress.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_huffman.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_private.h Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
bzlib_randtable.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
circbuf.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc16.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
crc32.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
ctype.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
display_options.c print_buffer: optimize & shrink 2010-08-09 00:28:38 +02:00
div64.c Move arch/ppc to arch/powerpc 2010-04-21 23:42:38 +02:00
gunzip.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
ldiv.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
lmb.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
Makefile Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
md5.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
net_utils.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
rbtree.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha1.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
sha256.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
string.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
strmhz.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
time.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00
vsprintf.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
zlib.c Rename lib_generic/ to lib/ 2010-04-13 09:13:04 +02:00