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