1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

19 Commits

Author SHA1 Message Date
Vincent Dupont
43a902b1ab sys/fmt: fix overflow in fmt_u32_dec()
If the value was 10 digits long it caused an overflow in the multiply loop.
The case is now tested before looping over.
2017-12-07 17:48:05 -08:00
smlng
65a230d1f1 sys,fmt: simplify fmt_s16_dfp
- allow formating of val=12345 with fp_digits=6 as 0.012345
    - use assert instead of explicit if
    - remove unused pwr function
2017-09-28 15:44:35 +02:00
Joakim Nohlgård
301a5d8e70 fmt: Remove unused pwr function 2017-09-20 10:49:00 +02:00
Joakim Nohlgård
1e43bd4211 sys/fmt: Small optimizations 2017-09-06 21:29:40 +02:00
smlng
f3e8c8c82c fmt: add signed 32 bit float point formating 2017-08-15 12:31:07 +02:00
Joakim Nohlgård
084db19107 sys/fmt: Fix unintentional pointer advancement for negative numbers in fmt_float 2017-06-21 18:28:11 +02:00
da519a3abc sys: fmt: add fmt_float() and print_float() 2017-05-20 14:47:29 +02:00
eb5ff902fa sys: fmt: fix fmt_lpad() documentation and (str==NULL) case 2017-03-28 16:07:30 +02:00
003b71b323 sys: fmt: add fmt_lpad() 2017-03-27 17:44:51 +02:00
Neil Jones
e3c8386d12 sys: fmt: include stdio.h for mips. 2017-02-09 12:25:52 +00:00
Martine Lenders
0cd2b746cc fmt: add print_byte_hex() helper 2017-02-03 15:16:53 +01:00
5923f6b137 sys: fmt: add fmt_u64_dec() 2016-06-02 10:40:19 +02:00
Hauke Petersen
95d26d3b94 sys/fmt: added format for fixed floating points 2016-03-29 15:23:04 +02:00
2567feebf2 sys: fmt: fix includes 2016-02-28 22:46:28 +01:00
8c6f373b98 sys: fmt: fix converting "0" in fmt_u32_dec() 2015-12-07 16:42:39 +01:00
157f8c93ad sys: fmt: add workaround for AVR libc's missing write() 2015-11-26 20:41:36 +01:00
f2a2656bac sys: fmt: use standard / for division by 10, not div.h 2015-11-18 19:00:13 +01:00
39bb99e55d sys: fmt: add write() declaration (work around broken unistd.h) 2015-10-29 19:18:24 +01:00
1293e7a8b9 sys: fmt: initial commit of simple string formatting library 2015-10-29 19:18:24 +01:00