home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / arch / 10491 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.4 KB  |  47 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!think.com!paperboy.osf.org!meissner
  3. From: meissner@osf.org (Michael Meissner)
  4. Subject: Re: Integers implementation
  5. In-Reply-To: fabre@gr.osf.org's message of Fri, 6 Nov 1992 14:45:02 GMT
  6. Message-ID: <MEISSNER.92Nov6161926@tiktok.osf.org>
  7. Sender: news@osf.org (USENET News System)
  8. Organization: Open Software Foundation
  9. References: <1992Nov6.144502.17520@osf.org>
  10. Date: 6 Nov 92 16:19:26
  11. Lines: 34
  12.  
  13. In article <1992Nov6.144502.17520@osf.org> fabre@gr.osf.org (Christian
  14. Fabre) writes:
  15.  
  16. | --
  17. | Hello,
  18. | I have a question about integers representation.
  19. | Most of today architecture use 2's complement scheme to represent
  20. | signed integers. About other possibilities, like 1's complement,
  21. | I have the following questions:
  22.     ...
  23.  
  24. |  - What are their drawbacks ?
  25.  
  26. 2's complement has a negative number without a postive counterpart.
  27. This means that abs function either will return 1 result that is
  28. negative, or will signal some exception.
  29.  
  30. 1's complement and signed magnitude have -0 which plays havoc with
  31. things like bit masks.  Also, in 1's comp, addition is done via a
  32. subtractor.
  33.  
  34.     ...
  35.  
  36. |  - Are they likely to pop-up in future processor design ?
  37.  
  38. I suspect not, particularly if you want to run C.
  39. --
  40. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  41. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  42.  
  43. You are in a twisty little passage of standards, all conflicting.
  44.