Article View: comp.arch
Article #554Re: two's complement and Flags (Re: arithmetic and endian history)
From: Stephen Fuld
Date: Fri, 06 Nov 2026 18:51
Date: Fri, 06 Nov 2026 18:51
49 lines
3951 bytes
3951 bytes
On 11/2/2026 10:43 AM, John Levine wrote: > According to Stephen Fuld <sfuld@alumni.cmu.edu.invalid>: >> "Scientists and engineers demanded both precision and mathematical >> consistency." The result was both the 36 bit word and the use of >> mathematical representation that provided complete symmetry of positive >> and negative numbers. All of these machines used a numeric >> representation that had an equal number of positive and negative numbers >> and had both plus and minus zeros. These requirements are still present >> today in the form of the IEEE floating point standard. The IBM , GE and >> DEC machines used a signed-magnitude representation in which the sign >> bit was just that/ The Sperry Rand Univac systems used a >> ones-complement representation because it permitted faster addition and >> subtraction with less hardware. A complement cycle was not needed for >> most operations." > > The DEC PDP-10 had two's complement floating point but otherwise yes. > That last sentence is true compared to sign-magnitude but it did need > end-around carry. > >> Of course, the paper doesn't explain why the requirement for symmetry >> seemed to go away and two's complement became acceptable. > > IEEE floating point is still sign-magnitude since among other things that > enables the hidden bit so you get more precision almost for free. > > My guess is that for fixed point arithmetic, experience told people > that having to account for two versions of zero was a pain, while the > fact that the largest negative number had no positive representation > didn't matter. Could be. I can't talk to anyone else's experience or on any systems other than the 1100 series. But to me, minus zero was a sort of curiosity. I never worried about it. Actually, I can't recall ever having to deal with it at all. Perhaps that was due to the type of programming I was doing, i.e. not scientific/math heavy stuff. Or perhaps it was due to the design of the adder (a ones complement subtractive adder), which never generated minus zero as the result of an arithmetic operation, or the fact that the instructions that tested a register or a memory location for zero treated both positive and negative zero as zero. For me, the fact that the 1100 series was word addressable and accessing things like strings of characters was painful was far more of an issue than ones compliment arithmetic. -- - Stephen Fuld (e-mail address disguised to prevent spam)
Technical Details
Message-ID:
<11cl7iu$2q0g9$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<10uks4f$1dqo$1@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me> <11caljv$jeo$1@gal.iecc.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Stephen Fuld <sfuld@alumni.cmu.edu.invalid> Newsgroups: comp.arch Subject: Re: two's complement and Flags (Re: arithmetic and endian history) Date: Fri, 6 Nov 2026 10:51:10 -0800 Organization: A noiseless patient Spider Lines: 49 Message-ID: <11cl7iu$2q0g9$1@dont-email.me> References: <10uks4f$1dqo$1@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me> <11caljv$jeo$1@gal.iecc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 06 Nov 2026 18:51:11 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2949641"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199CTEekbLmE5z3fXWYLKERyG27/ydHloU="; posting-host="873c3adb1e02b2e37895539d62dce0bd" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:UM3kmKHlKFqkvFwpcWwJMHfnJ6U= sha256:nO0sO4LFB068j3ObFjxM9cNA8H3aNof585B4YUtbROM= sha1:qQIv8X6nqRlVwDvkHuQ+5s8bsZE= sha256:sX6aV+RCAojsG9xPkmLwCoN4dMIVljxMScGMygCS+fk= Content-Language: en-US In-Reply-To: <11caljv$jeo$1@gal.iecc.com>