commit | 5d55730cf69dac7c8f99dcb17b04307cd050948c | [log] [tgz] |
---|---|---|
author | Michael Hope <mlhx@google.com> | Fri Jun 25 20:17:36 2021 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Jul 06 07:40:38 2021 -0400 |
tree | b15419a4ed4b3676adaf436a52099616750fe428 | |
parent | 395b0c3a2469e9e80077dc9aec4fe88ecfb11baf [diff] |
libc: minimal: add size optimized string functions The current implementations of memcpy and memset are optimized for performance and use a word based loop before the byte based loop. Add a config option that skips the word based loop. This saves 120 bytes on the Cortex-M0+ which is worthwhile on small apps like a bootloader. Enable by default if SIZE_OPTIMIZATIONS is set. Signed-off-by: Michael Hope <mlhx@google.com>