This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [wide-int] i am concerned about the typedef for widest-int.
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: Kenneth Zadeck <zadeck at naturalbridge dot com>
- Cc: Richard Biener <rguenther at suse dot de>, Mike Stump <mrs at mrs dot kithrup dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 02 Dec 2013 20:34:40 +0000
- Subject: Re: [wide-int] i am concerned about the typedef for widest-int.
- Authentication-results: sourceware.org; auth=none
- References: <529CED5B dot 7050908 at naturalbridge dot com>
Kenneth Zadeck <zadeck@naturalbridge.com> writes:
> see wide-int.h around line 290
>
> the MAX_BITSIZE_MODE_ANY_INT is the largest mode on the machine. however
> if the value coming in is an unsigned number of the type the represents
> that mode, don't we loose a bit?
That was the +1 mentioned here:
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg03745.html
I.e. it should be "widest supported arithmetic input + 1".
Thanks,
Richard