zephyr/lib/libc/minimal/source/string
Nicolas Pitre 03170c040c string.c: make it 64-bit compatible
Casting a pointer to an int produces warnings with 64-bit targets.
Furthermore, an int is not always the optimal memory element that
can be copied in that case.

Let's use uintptr_t to cast pointers to integers for alignment
determination purposes, and mem_word_t to denote the optimal memory
"word" that can be copied on the platform.

The mem_word_t definition is equivalent to uintptr_t by default.
However, some 32-bit targets such as ARM platforms with the LDRD/STRD
instructions could benefit from word_t being an uint64_t.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2019-06-07 13:19:51 -07:00
..
string.c string.c: make it 64-bit compatible 2019-06-07 13:19:51 -07:00
strncasecmp.c lib: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
strstr.c style: add braces around if/while statements 2019-06-06 15:20:21 +02:00