diff options
author | Keith Packard <keithp@keithp.com> | 2018-08-27 21:32:31 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-08-29 17:05:37 +0300 |
commit | 82dfae9ab0734b9946321590162dc6021057fec1 (patch) | |
tree | f249be4fc23400d6e7a24139ff09b08812444bc5 /newlib/libc/string | |
parent | 088a45cdf6a01059b5c4a7565e83c2bca83c8da5 (diff) |
Use __inhibit_loop_to_libcall in all memset/memcpy implementations
This macro selects a compiler option that disables recognition of
common memset/memcpy patterns and converting those to direct
memset/memcpy calls.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'newlib/libc/string')
-rw-r--r-- | newlib/libc/string/memcpy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/string/memcpy.c b/newlib/libc/string/memcpy.c index a1cff12d9..52f716b92 100644 --- a/newlib/libc/string/memcpy.c +++ b/newlib/libc/string/memcpy.c @@ -29,6 +29,7 @@ QUICKREF #include <_ansi.h> #include <string.h> +#include "local.h" /* Nonzero if either X or Y is not aligned on a "long" boundary. */ #define UNALIGNED(X, Y) \ @@ -44,6 +45,7 @@ QUICKREF #define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE) void * +__inhibit_loop_to_libcall memcpy (void *__restrict dst0, const void *__restrict src0, size_t len0) |