home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / std / c / 2533 < prev    next >
Encoding:
Text File  |  1992-08-29  |  996 b   |  27 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!convex!seas.smu.edu!utacfd.uta.edu!rwsys!sneaky!gordon
  3. From: gordon@sneaky.lonestar.org (Gordon Burditt)
  4. Subject: Re: space optimization involving enum
  5. Message-ID: <1992Aug26.222505.7496@sneaky.lonestar.org>
  6. Organization: Gordon Burditt
  7. References: <spuler.714711530@coral.cs.jcu.edu.au> <1992Aug25.160905.9177@sq.sq.com>
  8. Date: Wed, 26 Aug 1992 22:25:05 GMT
  9. Lines: 16
  10.  
  11. >In section 3.1.2.5 (ANSI numbering, 6.1.2.5 in ISO edition) standard
  12. >specifies in effect that all integral types, including enums, have the
  13. >same representation.  
  14.  
  15. So far, so good.
  16.  
  17. >                      The representation of 10000 has to use the bit
  18. >sequence 10011100010000.  
  19.  
  20. As I read it, wrong.  Nothing I see prevents use of 2's complement, 
  21. 1's complement, or excess-2**(n-1) (the sign bit being reversed from
  22. 2's complement).  However, it has to be used consistently on integral
  23. types.
  24.  
  25.                     Gordon L. Burditt
  26.                     sneaky.lonestar.org!gordon
  27.