Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-08-27 21:32:31 +0300
committerCorinna Vinschen <corinna@vinschen.de>2018-08-29 17:05:37 +0300
commit82dfae9ab0734b9946321590162dc6021057fec1 (patch)
treef249be4fc23400d6e7a24139ff09b08812444bc5 /newlib/libc/string
parent088a45cdf6a01059b5c4a7565e83c2bca83c8da5 (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.c2
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)