Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Hans-Peter Diettrich Newsgroups: comp.compilers Subject: Re: C arithmetic, was Software proofs, was Are there different Date: Tue, 7 Feb 2023 14:31:26 +0100 Organization: Compilers Central Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <23-02-029@comp.compilers> References: <23-01-092@comp.compilers> <23-02-003@comp.compilers> <23-02-019@comp.compilers> <23-02-025@comp.compilers> <23-02-026@comp.compilers> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="13477"; mail-complaints-to="abuse@iecc.com" Keywords: arithmetic, comment Posted-Date: 07 Feb 2023 21:30:36 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <23-02-026@comp.compilers> Content-Language: de-DE Xref: csiph.com comp.compilers:3371 On 2/6/23 10:26 PM, gah4 wrote: > Too bad for those CDC computers, and Unisys computers. > Last I know of sign-magnitude is the IBM 7090 and 7094. AFAIK use IEEE-754 floating point numbers still sign-magnitude representation. Then the same representation of integral numbers may have advantages in computations. DoDi [I presume the sign-magnitude is to enable the hidden bit trick, which doesn't apply in unscaled integers. -John]