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/machine/riscv | |
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/machine/riscv')
-rw-r--r-- | newlib/libc/machine/riscv/memcpy.c | 2 |
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) { \ |