Sujet : Re: What is your opinion about unsigned int u = -2 ?
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 09. Aug 2024, 19:08:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v95luq$9hos$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
Am 08.08.2024 um 19:47 schrieb David Brown:
Think about negating a value. For two's complement, that means inverting each bit and then adding 1. For sign-magnitude, you
invert the sign bit. For ones' complement, you invert each bit.
But with one's complement you have the same circuits for ading
and substracting like with unsigned values.