🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #544

Re: two's complement and Flags (Re: arithmetic and endian history)

#544
From: Terje Mathisen
Date: Wed, 04 Nov 2026 22:08
85 lines
5672 bytes
MitchAlsup wrote:
> Thomas Koenig <tkoenig@netcologne.de> posted:
> 
>> Stephen Fuld <sfuld@alumni.cmu.edu.invalid> schrieb:
>>
>>> I remembered someone telling me that, in the technology of the day
>>> (individual transistors on plug in logic cards) that for the Univac
>>> 1107, ones complement was faster, but I couldn't find a reference for
>>> that.
>>
>> I have also read the claim, but I think it bogus.  An end-around-carry
>> takes time.
> 
> The gate delay count of 1s-complement and 2s-complement are identical.
> 
> It was only when the end-around carry came out of the data-path at the
> top and went in at the bottom that 1s-complement was seen to be slower
> than 2s-complement. With "a couple of bits per logic board" and the
> ability to place the boards anywhere <within reason> end-around-carry
> was no slower than 2s-complement. So, prior to VLSI, the 2 adders were
> essentially identical in gate count, speed, and power.
>   
>> That may not matter when your adder is made of vacuum tubes and
>> your memory is made of cores, which are much slower, so you have
>> time for two ripple-carry round trips in one cycle.
> 
> Literally, the gate-count and gate-delay latency are identical.
> 
>>                                                      This, I believe,
>> was the case for the IBM 704 (I found literature for the 701).
>>
>> A couple of decades later: I found a mention on Wikipedia that the
>> SuperNova SC, which ran at semiconductor memory speeds, was the
>> fastest mini for some time.  The adders must have been fast enough.
>>
>>> I was talking about this with another Univac "old timer", and he
>>> sent me a paper copy of a talk given at the 25th anniversary USE
>>> conference (the Univac user's group) titled "Why it is the way it is",
>>> by Ron Q Smith, then a long time and well respected Univac employee.  It
>>> goes through the requirement by the military for 36 bit words, due to
>>> needing eight digits of floating point precision, rather than the 6
>>> digits that 32 bits would provide
> 
> 4-bits is only 1.3 decimal digits--not 2.0
> 
>>                                      and mentions that other computers of
>>> the day such as the IBM 7090 and 7094, GE systems and PDP 10 that used
>>> 36 bits. It then goes on to make an argument that I hadn't heard before.
>>>
>>> "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."
> 
> For the record, S.E.L machines {32/65, 32/67, and 32/87} all used 2s-
> complement FP in <otherwise> IBM Hex exponent and normalization.
> 
>>> Of course, the paper doesn't explain why the requirement for symmetry
>>> seemed to go away and two's complement became acceptable.
>>
>> The IBM 704 compared -0 as smaller than +0...
> 
> So, does IEEE total_order( -0, +0 );
> 

That is in fact a key part of ieee754, that all numbers from -Inf to 
+Inf can be ordered like that, using a comparator which is very similar 
to an integer compare.

NaNs do not have a sign, but a NaN with a sign bit will order below 
-Inf, just like you step from +Inf into the unsigned NaN range.

Terje

-- 
- <Terje.Mathisen at tmsw.no>
"almost all programming can be viewed as an exercise in caching"
Technical Details
Message-ID: <11cgad9$136td$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-mail
References: <10uks4f$1dqo$1@gal.iecc.com> <86qzi8omzj.fsf@linuxsc.com> <119n5rt$1205$1@gal.iecc.com> <6abf7d77.41149906@news.eternal-september.org> <119ovig$15mk$2@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me> <11cfs7h$tkeb$2@dont-email.me> <1793829210-5857@newsgrouper.org>

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: Terje Mathisen <terje.mathisen@tmsw.no>
Newsgroups: comp.arch
Subject: Re: two's complement and Flags (Re: arithmetic and endian history)
Date: Wed, 4 Nov 2026 23:08:43 +0100
Organization: A noiseless patient Spider
Lines: 85
Message-ID: <11cgad9$136td$1@dont-email.me>
References: <10uks4f$1dqo$1@gal.iecc.com> <86qzi8omzj.fsf@linuxsc.com>
 <119n5rt$1205$1@gal.iecc.com> <6abf7d77.41149906@news.eternal-september.org>
 <119ovig$15mk$2@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at>
 <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me>
 <11cfs7h$tkeb$2@dont-email.me> <1793829210-5857@newsgrouper.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 04 Nov 2026 22:08:42 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1153965"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/ffSmY3GEaxuGIPqG4jvDU1jVcRNKfXxQWuezvnzfGmg=="; posting-host="203e774a8cdcbc561062d302b9ea3f1b"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:lYo+/P5S5GhHCrNzeoM6Lp6N/rY= sha256:6l1G0y1ieG7BBDKlEKEJw2gjS9IDGbQkmN7Bn9YrNVI=
	sha1:wEpp71jNtsrInZCgXRkqAbq1QKM= sha256:oZIeEBP+gUW9P7PODN/xbQGWVp5N5885pEVAohBYLK4=
In-Reply-To: <1793829210-5857@newsgrouper.org>