mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-25 15:55:21 +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> |
||
---|---|---|
.known-issues | ||
arch | ||
boards | ||
doc | ||
drivers | ||
ext | ||
fs | ||
include | ||
kernel | ||
lib | ||
misc | ||
net | ||
samples | ||
scripts | ||
tests | ||
usb | ||
.checkpatch.conf | ||
.gitattributes | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
defaults.tc | ||
Kbuild | ||
Kconfig | ||
Kconfig.zephyr | ||
LICENSE | ||
MAINTAINERS | ||
Makefile | ||
Makefile.inc | ||
zephyr-env.sh |