From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Thread: 101deb,15c6ed4b761968e6 X-Google-Attributes: gid103376,gid1094ba,gid101deb,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!news.linkpendium.com!news.linkpendium.com!ken-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: "robin" Newsgroups: comp.lang.ada,comp.lang.fortran,comp.lang.pl1 References: <0ugu4e.4i7.ln@hunter.axlog.fr> <%P_cg.155733$eR6.26337@bgtnsc04-news.ops.worldnet.att.net> <6H9dg.10258$S7.9150@news-server.bigpond.net.au> <1hfv5wb.1x4ab1tbdzk7eN%nospam@see.signature> <20060712.7A4E6E0.D028@mojaveg.lsan.sisna <20060717.7A4ADD0.10B1A@mojaveg.lsan.sisna.com> <44bceab6$29$fuzhry+tra$mr2ice@news.patriot.net> <5qednejm5MHL9SPZnZ2dnUVZ_oSdnZ2d@comcast.com> Subject: Re: ONES COMPLEMENT X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Wed, 19 Jul 2006 23:43:02 GMT NNTP-Posting-Host: 203.54.188.15 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1153352582 203.54.188.15 (Thu, 20 Jul 2006 09:43:02 EST) NNTP-Posting-Date: Thu, 20 Jul 2006 09:43:02 EST Organization: BigPond Internet Services Xref: g2news2.google.com comp.lang.ada:5827 comp.lang.fortran:12246 comp.lang.pl1:2063 Date: 2006-07-19T23:43:02+00:00 List-Id: glen herrmannsfeldt wrote in message <5qednejm5MHL9SPZnZ2dnUVZ_oSdnZ2d@comcast.com>... >Peter Flass wrote: > >> Shmuel (Seymour J.) Metz wrote: > >(snip on negative zero) > >>> I never saw a need to test for it regardless. Every 1s complement >>> machine I know of lets you test for zero in a single instruction. > >> What happens on a test for negative? Did the machines just test the >> sign bit, making -0 a negative number? > >Well, consider the 704, which is actually sign magnitude but has the >same problem. (The easiest way to do sign magnitude arithmetic is >to convert to ones complement first, and convert back later.) It doesn't follow. Twos complement for neg. values is just as easy. In fact, for a serial machine, not only it [twos complement] easier, it is done in less time! when consideration of the ensuing arithmetic is considered. >The 704 has a three way test instruction recently discussed in some >newsgroup, with branch destinations for negative, zero, and positive. >Any questions about the origin of the arithmetic IF statement? This is off-topic, and completely irrelevant. It has nothing to do with ones complement.