Vincent Dupont
|
a542e954cf
|
fmt: add fmt_u16_hex()
|
2018-10-03 10:44:03 +02:00 |
|
Toon Stegen
|
3a69e0fa98
|
sys/fmt: remove useless assignment
|
2018-08-20 16:19:30 +02:00 |
|
Toon Stegen
|
9f90f31291
|
sys/fmt: add function for converting hex byte
|
2018-08-20 16:19:30 +02:00 |
|
|
1778dbde85
|
fmt: Add fmt_strnlen function
|
2018-06-14 11:57:11 +02:00 |
|
Hauke Petersen
|
78df885fc7
|
sys/fmt: use also positive scaling for s32_dfp
|
2018-04-06 11:58:43 +02:00 |
|
Joakim Nohlgård
|
9fe024b87e
|
fmt: Adjust stack allocated buffer, add comments
Adjusted buffer size for u64 case to fit the largest 64 bit decimal
number, added comments on all decimal buffers to explain which number
will fit.
|
2018-02-07 10:21:22 +01:00 |
|
Joakim Nohlgård
|
5ec44c82ba
|
fmt: Add fmt_s64_dec, print_s64_dec
|
2018-02-06 11:04:42 +01:00 |
|
|
2d02bc0394
|
sys/fmt: add new byte to hex converters:
- fmt_bytes_hex: converts an array of bytes to an array of hex bytes
- fmt_hex_bytes: convert an array of hex bytes to an array of bytes
|
2018-01-10 21:30:39 +01:00 |
|
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 |
|