Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v95mkf$unfr$1@dont-email.me>
Deutsch   English   Français   Italiano  
<v95mkf$unfr$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: What is your opinion about unsigned int u = -2 ?
Date: Fri, 9 Aug 2024 20:19:59 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <v95mkf$unfr$1@dont-email.me>
References: <v8dfo9$1k7cg$1@dont-email.me>
 <pan$d2c8a$8c54ac9f$29a202e0$12c6ce86@invalid.invalid>
 <87bk2cecan.fsf@bsb.me.uk> <v8inds$2qpqh$1@dont-email.me>
 <v8iqnr$7l3c$1@news.xmission.com>
 <v8oha0$6935$2@raubtier-asyl.eternal-september.org>
 <v91157$3eui3$2@dont-email.me> <v930b2$4v1a$1@dont-email.me>
 <v95luq$9hos$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 09 Aug 2024 20:19:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="20dc90042b48f6417a3734e9d0abbff5";
	logging-data="1007099"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18fNT5CDNcoE+RP6CpwitxD1GO1ed1Lywg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+z9RTHZ8KWoYiMbSETSd+a/XNSY=
Content-Language: en-GB, nb-NO
In-Reply-To: <v95luq$9hos$1@raubtier-asyl.eternal-september.org>
Bytes: 2045

On 09/08/2024 20:08, Bonita Montero wrote:
> 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.

If you are trying to say that for two's complement, "a + b" and "a - b" 
use the same circuits regardless of whether you are doing signed or 
unsigned arithmetic, then that is correct.  It is one of the reasons why 
two's complement became the dominant format.