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/machine/riscv/memcpy.c
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/machine/riscv/memcpy.c')
-rw-r--r--newlib/libc/machine/riscv/memcpy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/machine/riscv/memcpy.c b/newlib/libc/machine/riscv/memcpy.c
index c717f9f4b..a0ab78a0a 100644
--- a/newlib/libc/machine/riscv/memcpy.c
+++ b/newlib/libc/machine/riscv/memcpy.c
@@ -11,10 +11,12 @@
#include <string.h>
#include <stdint.h>
+#include "../../string/local.h"
#define unlikely(X) __builtin_expect (!!(X), 0)
void *
+__inhibit_loop_to_libcall
memcpy(void *__restrict aa, const void *__restrict bb, size_t n)
{
#define BODY(a, b, t) { \