Home
last modified time | relevance | path

Searched hist:"64419 e47518bbba059c80b77558f93ad4804145c" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/lib/
H A Ddisplay_options.c64419e47518bbba059c80b77558f93ad4804145c Fri Jul 23 10:17:30 UTC 2010 Mike Frysinger <vapier@gentoo.org> 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>