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,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!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!ndsoftware.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Tom Linden" Newsgroups: comp.lang.ada,comp.lang.fortran,comp.lang.pl1 Subject: Re: ONES COMPLEMENT Date: Wed, 19 Jul 2006 05:47:52 -0700 Organization: Kednos Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Trace: individual.net xfhlnNT0VqFfXMoy4T46oQ3kqdqtKkNANtUMu0LuReCbzKh5eF User-Agent: Opera Mail(BETA2)/9.00 (Win32) Xref: g2news2.google.com comp.lang.ada:5805 comp.lang.fortran:12220 comp.lang.pl1:2043 Date: 2006-07-19T05:47:52-07:00 List-Id: On Tue, 18 Jul 2006 23:54:39 -0700, glen herrmannsfeldt wrote: > One solution is to do subtraction as the basic operation, > such that subtracting two of the same number will generate +0, > and addition as subtraction of the complement. > -0 can still result if -0 is used as an operand, though. or mask the sign bit for a zero compare instruction