[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/3] yacc: compute the best type for the state number
From: |
Hans Åberg |
Subject: |
Re: [PATCH 0/3] yacc: compute the best type for the state number |
Date: |
Tue, 1 Oct 2019 22:24:28 +0200 |
> On 1 Oct 2019, at 21:21, Kaz Kylheku <address@hidden> wrote:
>
> On 2019-10-01 06:53, Hans Åberg wrote:
>> One should note that the unsigned types are required to be 2’s
>> complement C/C++, unlike the signed ones, cf.
>
> That is untrue by definition, since two's complement is strictly
> a mechanism for representing negative values, which the unsigned
> types do not do. They follow a "pure binary enumeration"
> (I think that's the wording).
Sorry, it should be integers modulo 2^n, where n is the number of bits, which
2’s complement is equivalent to with a certain choice of integer
representatives.