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