home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1824 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.8 KB

  1. Path: sparky!uunet!cimshop!davidm
  2. From: davidm@consilium.com (David S. Masterson)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: "long long" and C++
  5. Message-ID: <DAVIDM.92Dec16212040@consilium.com>
  6. Date: 17 Dec 92 05:20:40 GMT
  7. References: <Bz9M1x.8vp@fig.citib.com> <1992Dec15.182228.23669@taumet.com>
  8. Sender: root@cimshop.UUCP
  9. Distribution: comp
  10. Organization: Consilium Inc., Mountain View, California
  11. Lines: 30
  12. In-reply-to: steve@taumet.com's message of 15 Dec 92 18:22:28 GMT
  13. X-Posting-Software: GNUS 3.13  [ NNTP-based News Reader for GNU Emacs ]
  14.  
  15. >>>>> On 15 Dec 92 18:22:28 GMT, steve@taumet.com (Steve Clamage) said:
  16.  
  17. > The next C standard will probably support an integer type longer than
  18. > type long.  The C++ Committee has no proposals that I know of for
  19. > adding such a type.  When it is added to C, it will certainly be
  20. > added to C++.  If the ANSI C numerical extensions group decides on a
  21. > longer integer type and it looks likely to be included in C, I would
  22. > expect the C++ Committee to adopt it.  It is thus possible that C++
  23. > will have it officially before C, if only due to timing.
  24.  
  25. > Whether the longer type will be called "long long" or something else is
  26. > anyone's guess.
  27.  
  28. I've heard a lot of talk about "long long", but never understood why C would
  29. need new syntax to represent a 64-bit integer.  Is there anything wrong with:
  30.  
  31.     char    -    8 bits
  32.     short    -    16 bits
  33.     int    -    32 bits        (16 on 16-bit architecture)
  34.     long    -    64 bits        (32 on 16-bit architecture)
  35.     long long -    128 bits    (64 on 16-bit architecture)
  36.  
  37. --
  38. ====================================================================
  39. David Masterson                    Consilium, Inc.
  40. (415) 691-6311                    640 Clyde Ct.
  41. davidm@consilium.com                Mtn. View, CA  94043
  42. ====================================================================
  43. "Bureaucracy is a giant mechanism operated by pygmies."
  44. -- Honore de Balzac
  45.