mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-10 15:37:10 +00:00
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> |
||
---|---|---|
.. | ||
minimal | ||
newlib | ||
Makefile |