From patchwork Wed Dec 21 23:05:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 707988 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3tkVfT4z06z9snm for ; Thu, 22 Dec 2016 10:07:13 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="RBqc1P76"; dkim-atps=neutral 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:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=xLFHMFcmwsW6Pjibp2UorQPjbaUvZ6W iGaSiX40VeLg57GGnxWTDnQSae0pPICHFYRCus/aimp7ZhfZXiWNbwjqYaL+H8py gRDF3jVNseHVQpYDWlifHfj6/u5D6G+5ahA//w8qcUfF3lTF2HfATQXdImpIvmmc gvWwV5wBS+YA= 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:subject:date:message-id:in-reply-to :references; s=default; bh=9ELmNvEumK4DYAJxV+DKHfxIjsU=; b=RBqc1 P76gXUD6WqOwwTCI/e56tpuHQAR2t89/qFk+U4hhiOJn+dswFJAAdCo2AD+ubtUg Pi93yGInVhx32AmzJGhhfNj2S3Xi8rtU3gIvTPBFHIIgzlk8/EpXfgjnGZWJpspb ySe0J81EqIdZxp8TLeB3M8xpEPtbXe9Ai27aUI= Received: (qmail 51465 invoked by alias); 21 Dec 2016 23:06:21 -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 51237 invoked by uid 89); 21 Dec 2016 23:06:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:74.125.83.68, H*RU:74.125.83.68, 5610 X-HELO: mail-pg0-f68.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=nI049XY35rYXKOZiyDQFt3Rafn7izhLLHjECVwuOvd0=; b=hTgcKWZ/i6FasiwEkKsfbkYs3lVTtB33DvVvnOszYPgcGboBKlsXxVWeX3kbbycn/B ZTjLvqql5eD1aFnSqMjJ73LLPrqoaSuGhzTch+c/8RFmlxr8NvK64c/X20Bm+4dT6vHV UPOoCCHRBxJweRUyOnCOeuICWrqr1FJ/XNTQetINv109SHc4QvmQr7jR2idZ+ec4amST 2tq1ZBbTl3A72YVagOJpaP2uCd+lJWyRaajs9wOfcp1PvpyAQOQnvgENhBz6UQQGKCCl OtIj1BIp3fRMfQ/ZMhLB6KiFTlTT/zkUe7M35LF2iYw2bf80gRcqVg9X6hEfsParK/Om lUQg== X-Gm-Message-State: AIkVDXI0Ep3V3c/rRNDv7vaCR/puId/Zl73F93iblvYI1eaCScOpEN8iQlj5xeCYQIn6SQ== X-Received: by 10.84.167.168 with SMTP id d37mr13123365plb.71.1482361568518; Wed, 21 Dec 2016 15:06:08 -0800 (PST) From: Richard Henderson To: libc-alpha@sourceware.org Subject: [PATCH v2 01/16] Parameterize op_t from memcopy.h Date: Wed, 21 Dec 2016 15:05:50 -0800 Message-Id: <20161221230605.28638-2-rth@twiddle.net> In-Reply-To: <20161221230605.28638-1-rth@twiddle.net> References: <20161221230605.28638-1-rth@twiddle.net> * sysdeps/generic/string-optype.h: New file. * sysdeps/generic/memcopy.h: Include it. --- sysdeps/generic/memcopy.h | 7 +++---- sysdeps/generic/string-optype.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 sysdeps/generic/string-optype.h diff --git a/sysdeps/generic/memcopy.h b/sysdeps/generic/memcopy.h index fe9aa60..38f27a8 100644 --- a/sysdeps/generic/memcopy.h +++ b/sysdeps/generic/memcopy.h @@ -56,10 +56,9 @@ [I fail to understand. I feel stupid. --roland] */ -/* Type to use for aligned memory operations. - This should normally be the biggest type supported by a single load - and store. */ -#define op_t unsigned long int +/* Type to use for aligned memory operations. */ +#include + #define OPSIZ (sizeof(op_t)) /* Type to use for unaligned operations. */ diff --git a/sysdeps/generic/string-optype.h b/sysdeps/generic/string-optype.h new file mode 100644 index 0000000..63e5b09 --- /dev/null +++ b/sysdeps/generic/string-optype.h @@ -0,0 +1,31 @@ +/* string-optype.h -- Define a type to use for word access. Generic version. + Copyright (C) 2016 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 + . */ + +#ifndef STRING_OPTYPE_H +#define STRING_OPTYPE_H 1 + +/* Use the existing parameterization from gmp as a default. */ +#include + +#ifdef _LONG_LONG_LIMB +typedef unsigned long long int op_t; +#else +typedef unsigned long int op_t; +#endif + +#endif /* string-optype.h */