This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [wide-int] Reduce the size of the scratch arrays
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>,zadeck at naturalbridge dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 20 Oct 2013 14:48:39 +0200
- Subject: Re: [wide-int] Reduce the size of the scratch arrays
- Authentication-results: sourceware.org; auth=none
- References: <87wql844kz dot fsf at talisman dot default>
Richard Sandiford <rdsandiford@googlemail.com> wrote:
>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?
>
Ok
Thanks,
Richard.
>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 <typename T>