home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch
- Path: sparky!uunet!pmafire!mica.inel.gov!ux1!news.byu.edu!hamblin.math.byu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!purdue!mentor.cc.purdue.edu!pop.stat.purdue.edu!hrubin
- From: hrubin@pop.stat.purdue.edu (Herman Rubin)
- Subject: Re: Integers implementation
- Message-ID: <BxAxxo.4B2@mentor.cc.purdue.edu>
- Sender: news@mentor.cc.purdue.edu (USENET News)
- Organization: Purdue University Statistics Department
- References: <1992Nov6.144502.17520@osf.org>
- Date: Fri, 6 Nov 1992 16:03:23 GMT
- Lines: 32
-
- In article <1992Nov6.144502.17520@osf.org> fabre@gr.osf.org (Christian Fabre) writes:
-
- >I have a question about integers representation.
-
- >Most of today architecture use 2's complement scheme to represent
- >signed integers. About other possibilities, like 1's complement,
- >I have the following questions:
-
- > - What are their advantges ?
- > - What are their drawbacks ?
- > - Are they usefull for any given set of aplications ?
- > - Are they likely to pop-up in future processor design ?
-
- >Any input welcome, please reply by news.
-
- For 2's complement, the advantages are simplicity of multiple-precision,
- and this can take many forms, including size expansion, and the fact that
- there is only one 0. This last is a real problem for the others.
-
- The alternatives I have seen are 1's complement and sign-magnitude. The
- advantages are that negation is very much simpler, as is absolute value.
- Since the negative of a negative number is always positive, it does not
- have the problem which 2-s complement machines have, that the negative
- of the most negative number comes out negative.
-
- Each of them has advantages and disadvantages in multiple precision.
- Notice that floating point is almost always sign-magnitude.
- --
- Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399
- Phone: (317)494-6054
- hrubin@pop.stat.purdue.edu (Internet, bitnet)
- {purdue,pur-ee}!pop.stat!hrubin(UUCP)
-