Article View: comp.arch
Article #509Re: two's complement and Flags (Re: arithmetic and endian history)
From: Stephen Fuld
Date: Mon, 02 Nov 2026 18:12
Date: Mon, 02 Nov 2026 18:12
49 lines
3812 bytes
3812 bytes
On 11/2/2026 9:45 AM, Stephen Fuld wrote: > On 10/3/2026 4:49 PM, MitchAlsup wrote: >> >> anton@mips.complang.tuwien.ac.at (Anton Ertl) posted: >> >>> John Levine <johnl@taugh.com> writes: >>>> Even though the 704's regualar arithmetic was sign-magnitude, its >>>> index arithmetic was two's complement subtraction. People certainly >>>> knew about two's complement, dunno why they stuck with one's comp so >>>> long. >>> >>> My current theory is that 2's complement was known as a technique for >>> subtracting unsigned numbers (and earlier using 10's complement for >>> mechanical computing machines), and that was used just for unsigned >>> numbers for quite a while on many computers, e.g., on the IBM 704 or >>> the PDP-4. >>> >>> The idea of interpreting numbers with set MSB as negative numbers by >>> subtracting 2^n from their unsigned value, and relying on the >>> properties of modular arithmetic to make this work with the same >>> addition, subtraction, multiplication, and shift-left operations that >>> were also used for unsigned arithmetic was apparently only becoming >>> widespread in the early 1960s. It's not an obvious idea. >>> >>> Once that idea was widespread, people designed their new product lines >>> with 2s-complement representation of signed numbers. >>> >>> However, ones-complement is not obvious, either. How did that become >>> widespread? >> >> When an integer adder was spread over several plug in logic boards, >> the end-around carry of 1s-complement was no hinderance to ADD perf >> (as it became when the whole data path was in one die). >> >> 1s-complment had MUL & DIV 2^n for free, and symmetrical ± ranges. > 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 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) Again, I apologize for the self follow-up, but it was the 35th (not 25th) anniversary conference Nov 5-9 1990. -- - Stephen Fuld (e-mail address disguised to prevent spam)
Technical Details
Message-ID:
<11cajr1$33lba$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> <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>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: Mon, 2 Nov 2026 10:12:49 -0800 Organization: A noiseless patient Spider Lines: 49 Message-ID: <11cajr1$33lba$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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 02 Nov 2026 18:12:50 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3265898"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bDAFvLXgPcn4vvk3iEfIUWzvUYRuh01Y="; posting-host="1a9b3b4bf730a9d280d77f1c4d91b062" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:v2Uh39BWRXwg7FAB4rlMUWHlo3s= sha256:4mNt8jb9eY7iWlyRs2GyICz3qdlX53Z6ZiTVGwGqNYA= sha1:JVXW5nB2G5z/U9Mq6F9NJeUKh9c= sha256:sjro8WgHkzLwGLwyhVAoAgwttAHm9Qn2ETd8GrNjMjs= Content-Language: en-US In-Reply-To: <11cai8f$32ue7$1@dont-email.me>