home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4390 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  1.0 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!riacs!pan.arc.nasa.gov!roelofs
  2. From: roelofs@pan.arc.nasa.gov (Greg Roelofs)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: SHORT, USHORT, and other absurdities
  5. Message-ID: <1992Aug23.044105.8994@riacs.edu>
  6. Date: 23 Aug 92 04:41:05 GMT
  7. References: <19920811.003756.988@almaden.ibm.com> <910@nazgul.UUCP> <qr+nf3a.feustel@netcom.com>
  8. Sender: news@riacs.edu
  9. Organization: University of Chicago
  10. Lines: 21
  11.  
  12. feustel@netcom.com (David Feustel) writes:
  13.  
  14. >I've often wished that the following typdefs had been included in C:
  15. >
  16. >typedef unsigned char U08;
  17. >typedef signed char  I08;
  18. >typedef unsigned short int U16;
  19. >typedef signed short int I16;
  20. >typedef unsigned int U32;
  21. >typedef int I32;
  22. >Typedef unsigned long int U64;
  23. >Typedef long int I64;
  24. >typedef signed int I32;
  25. >typedef float F32;
  26. >typedef double F64;
  27.  
  28. But what will you do on a machine where shorts are 64 bits by default,
  29. but can be 24 or 46 bits via a compiler switch?  Likewise for 64-bit
  30. floats and 128-bit doubles?
  31.  
  32. Greg
  33.