From patchwork Fri Nov 30 15:57:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Liebler X-Patchwork-Id: 1006115 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-97810-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="X4kl7Z5G"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43622V5B7hz9s89 for ; Sat, 1 Dec 2018 04:49:22 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:in-reply-to:references :message-id; q=dns; s=default; b=iConSi41TJztwrr9texW2CAb/SdZL8r 6vXX4ehV4wOxvXiyZ7uGS6oM69fTzM+GHJDGFxql7lZZp02NVsL2JVVnDXEGIkuf vi3NN9mlVOUqw46AyaVvkAVecn/9u7aYgxbVY8zjDhOyyZO/LWkKm4XqYbKxVvM7 dwZbYuYmrb0o= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:in-reply-to:references :message-id; s=default; bh=dysxoDwMqCx7qZSiWo4U+t7PCa0=; b=X4kl7 Z5GZ7DZVSrE06ihnGAKyX6DJrQ56ca4fjgTxh/8A2elIG8Mb8UTb0zYrRv2fH9HV JmqHts61RkWQNbRJKdop7zIipKMmubbsqn/daaqYmXC4tW6I2eshrrnCZsfnjMwh L1L1aNVi3qQsuwRmElTCvT8/Y6aUMvnRrlbmng= Received: (qmail 61177 invoked by alias); 30 Nov 2018 17:49:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 61037 invoked by uid 89); 30 Nov 2018 17:49:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com From: Stefan Liebler To: libc-alpha@sourceware.org Cc: Stefan Liebler Subject: [PATCH 11/56] S390: Use memcpy for forward cases in memmove. Date: Fri, 30 Nov 2018 16:57:49 +0100 In-Reply-To: <1543593514-10251-1-git-send-email-stli@linux.ibm.com> References: <1543593514-10251-1-git-send-email-stli@linux.ibm.com> x-cbid: 18113015-0028-0000-0000-00000323FCAC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18113015-0029-0000-0000-000023E01259 Message-Id: <1543593514-10251-12-git-send-email-stli@linux.ibm.com> The s390/s390x memcpy implementations are safe to be used by memmove. Starting with this commit, memmove is using memcpy for the forward cases on s390. ChangeLog: * sysdeps/s390/memcopy.h: New file. --- sysdeps/s390/memcopy.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sysdeps/s390/memcopy.h diff --git a/sysdeps/s390/memcopy.h b/sysdeps/s390/memcopy.h new file mode 100644 index 0000000000..9a76196502 --- /dev/null +++ b/sysdeps/s390/memcopy.h @@ -0,0 +1,23 @@ +/* memcopy.h -- definitions for memory copy functions. + Copyright (C) 2018 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include + +/* The s390/s390x memcpy implementations are safe to be used by memmove. */ +#undef MEMCPY_OK_FOR_FWD_MEMMOVE +#define MEMCPY_OK_FOR_FWD_MEMMOVE 1