zephyr/lib
Nicolas Pitre 90ec5360be prf.c: fix wrong results with %g conversion
The precision parameter to the %g conversion indicates the maximum
number of significant digits and not the number of digits to appear
after the radix character. Here's a few examples this patch fixes:

                                expected        before
----------------------------------------------------------
printf("%.3g", 150.12)          150             150.12
printf("%.2g", 150.1)           1.5e+02         150.1
printf("%#.3g", 150.)           150.            150.000
printf("%#.2g", 15e-5)          0.00015         0.00
printf("%#.4g", 1505e-7)        0.0001505       0.0002
printf("%#.4g", 1505e-8)        1.505e-05       1.5050e-05

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2019-07-14 23:07:44 -04:00
..
cmsis_rtos_v1
cmsis_rtos_v2 CMSIS v2: Work around time unit confusion 2019-07-02 22:52:29 -04:00
gui gui: Move lvgl into a zephyr module 2019-07-06 07:58:44 -04:00
libc prf.c: fix wrong results with %g conversion 2019-07-14 23:07:44 -04:00
os malloc: make sure returned memory is properly aligned 2019-07-03 14:17:29 -07:00
posix cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
updatehub cleanup: include/: move misc/reboot.h to power/reboot.h 2019-06-27 22:55:49 -04:00
CMakeLists.txt
Kconfig