|
|
d8307d |
commit d097d97626e44bc6e76d5daf80ce3ff7d147b623
|
|
|
d8307d |
Author: Stefan Liebler <stli@linux.ibm.com>
|
|
|
d8307d |
Date: Tue Dec 18 13:57:07 2018 +0100
|
|
|
d8307d |
|
|
|
d8307d |
S390: Use memcpy for forward cases in memmove.
|
|
|
d8307d |
|
|
|
d8307d |
The s390/s390x memcpy implementations are safe to be
|
|
|
d8307d |
used by memmove. Starting with this commit, memmove is
|
|
|
d8307d |
using memcpy for the forward cases on s390.
|
|
|
d8307d |
|
|
|
d8307d |
ChangeLog:
|
|
|
d8307d |
|
|
|
d8307d |
* sysdeps/s390/memcopy.h: New file.
|
|
|
d8307d |
|
|
|
d8307d |
diff --git a/sysdeps/s390/memcopy.h b/sysdeps/s390/memcopy.h
|
|
|
d8307d |
new file mode 100644
|
|
|
d8307d |
index 0000000000000000..9a76196502f25bbf
|
|
|
d8307d |
--- /dev/null
|
|
|
d8307d |
+++ b/sysdeps/s390/memcopy.h
|
|
|
d8307d |
@@ -0,0 +1,23 @@
|
|
|
d8307d |
+/* memcopy.h -- definitions for memory copy functions.
|
|
|
d8307d |
+ Copyright (C) 2018 Free Software Foundation, Inc.
|
|
|
d8307d |
+ This file is part of the GNU C Library.
|
|
|
d8307d |
+
|
|
|
d8307d |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
d8307d |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
d8307d |
+ License as published by the Free Software Foundation; either
|
|
|
d8307d |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
d8307d |
+
|
|
|
d8307d |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
d8307d |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
d8307d |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
d8307d |
+ Lesser General Public License for more details.
|
|
|
d8307d |
+
|
|
|
d8307d |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
d8307d |
+ License along with the GNU C Library; if not, see
|
|
|
d8307d |
+ <http://www.gnu.org/licenses/>. */
|
|
|
d8307d |
+
|
|
|
d8307d |
+#include <sysdeps/generic/memcopy.h>
|
|
|
d8307d |
+
|
|
|
d8307d |
+/* The s390/s390x memcpy implementations are safe to be used by memmove. */
|
|
|
d8307d |
+#undef MEMCPY_OK_FOR_FWD_MEMMOVE
|
|
|
d8307d |
+#define MEMCPY_OK_FOR_FWD_MEMMOVE 1
|