From patchwork Sun Oct 20 10:30:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 284961 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AF24D2C016B for ; Sun, 20 Oct 2013 21:30:48 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=SMC6aJC2JtEHHS24B+TTsbnT5AKnA4AdxHbzQcuAf+b07JrFsf yq7ECaWwzj537ORfhW2fzD2MHk12O9yTUSTq1EY8u0bdlx1hXeP6MuTHll2/f8nW hcXPdUBJTlyASedKBYe8IVjV0aB7q72Npum/8AXCP76bwLfZyRM5oS9ZY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=NdhNuGDNF1P77z8RP9KJWpGFhwc=; b=LA1Cdpp8yauR0KeTLj28 GQOkYdGCa/lPsNgCLlTCYUozTQ66v1HB5btjb8HWSzzfq4wDjo6a3MBrrATbfvdg bErn2AQVa5/uXlzwxrSXNVKFgf+qOBhALnjbSLw8VzEteBb+zzyArO/LXf2Zs/RM 4aF9SJ6DXYlL2PAaERsizg0= Received: (qmail 28048 invoked by alias); 20 Oct 2013 10:30:42 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 28034 invoked by uid 89); 20 Oct 2013 10:30:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f181.google.com Received: from mail-we0-f181.google.com (HELO mail-we0-f181.google.com) (74.125.82.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 20 Oct 2013 10:30:40 +0000 Received: by mail-we0-f181.google.com with SMTP id t60so5424577wes.12 for ; Sun, 20 Oct 2013 03:30:37 -0700 (PDT) X-Received: by 10.180.90.197 with SMTP id by5mr5545047wib.43.1382265037729; Sun, 20 Oct 2013 03:30:37 -0700 (PDT) Received: from localhost ([2.28.235.51]) by mx.google.com with ESMTPSA id ft19sm21055394wic.5.2013.10.20.03.30.37 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Sun, 20 Oct 2013 03:30:37 -0700 (PDT) From: Richard Sandiford To: zadeck@naturalbridge.com Mail-Followup-To: zadeck@naturalbridge.com, gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Cc: gcc-patches@gcc.gnu.org Subject: [wide-int] Reduce the size of the scratch arrays Date: Sun, 20 Oct 2013 11:30:36 +0100 Message-ID: <87wql844kz.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 If yesterday's patch goes in, we'll only need the scratch array for HWI inputs. We can therefore shrink it to 2 HWIs. Tested on x86_64-linux-gnu. OK for wide-int? Thanks, Richard Index: gcc/wide-int.h =================================================================== --- gcc/wide-int.h 2013-10-19 20:08:15.571987579 +0100 +++ gcc/wide-int.h 2013-10-19 20:09:12.299436972 +0100 @@ -778,7 +778,7 @@ struct wide_int_ref_storage : public wi: private: /* Scratch space that can be used when decomposing the original integer. It must live as long as this object. */ - HOST_WIDE_INT scratch[WIDE_INT_MAX_ELTS]; + HOST_WIDE_INT scratch[2]; public: template