zephyr/lib/libc
Andy Ross a4537cb0d3 libc/printf: Unify & simplify number printing
Hex, octal and decimal all had separately implemented reduction loops
to generate strings.  With only a little work these can all be unified
to a single implementation that works with an arbitrary base.

Performance is probably a little lower owing to the fact that
hex/octal now requires a division per character, and the extra
"reverse the string" trick at the end of the conversion.  But code
size savings are substantial.

Change-Id: I11ff376aeca1483f974d328271e19918221b2a41
Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2016-09-10 00:48:59 +00:00
..
minimal libc/printf: Unify & simplify number printing 2016-09-10 00:48:59 +00:00
newlib nios2: Kconfig: remove some unused config options 2016-06-10 15:22:42 +00:00
Makefile cleanup libc kconfig and use choice 2016-02-05 20:15:25 -05:00