zephyr/lib
Nicolas Pitre a6891e0313 prf.c: make it 64-bit compatible
On 64-bit systems the most notable difference is due to longs and
pointers being 64-bit wide. Therefore there must be a distinction
between ints and longs.

This patch:

- Make support functions take a long rather than an int as this can
  carry both longs and ints just fine.

- Use unsigned values in _to_x() to cover the full unsigned range
  and avoid sign-extending big values. Negative values are already
  converted to unsigned after printing the minus sign. This also makes
  division and modulus operations slightly faster.

- Remove excessive casts around va_arg() and use proper types with it.

- Implement the l and z length modifiers as they're significant on
  64-bit targets. While at it, throw in the z modifier as well.
  Since they all come down to 32-bit values on 32-bit targets, the
  added code should get optimized away as duplicate by the compiler
  in that case.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2019-06-13 12:55:17 -07:00
..
cmsis_rtos_v1 lib: cmsis_v1: set stack size larger if coverage 2019-05-02 15:42:33 -04:00
cmsis_rtos_v2 lib: cmsis_v2: increase stack sizes if coverage 2019-05-02 15:42:33 -04:00
gui gui: Corrected RGB888 pointer in LVGL write function 2019-05-30 09:33:07 -04:00
libc prf.c: make it 64-bit compatible 2019-06-13 12:55:17 -07:00
os style: add braces around if/while statements 2019-06-06 15:20:21 +02:00
posix posix: Fix calculation of clock base in clock_settime 2019-05-21 08:24:59 -04:00
updatehub lib: updatehub: add support ipv6 2019-06-05 00:20:37 +02:00
CMakeLists.txt lib: updatehub: Add UpdateHub.io support 2019-06-05 00:20:37 +02:00
Kconfig lib: updatehub: Add UpdateHub.io support 2019-06-05 00:20:37 +02:00