home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / VALUES.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-18  |  1.5 KB  |  62 lines

  1. /*  values.h
  2.  
  3.     Symbolic names for important constants, including machine
  4.     dependencies. A System V compatible header.
  5.  
  6. */
  7.  
  8. /* $Copyright: 1987$ */
  9. /* $Revision:   8.1  $ */
  10.  
  11. #if !defined(__VALUES_H)
  12. #define __VALUES_H
  13.  
  14. #if !defined(___DEFS_H)
  15. #include <_defs.h>
  16. #endif
  17.  
  18. #define BITSPERBYTE 8
  19. #define MAXSHORT    0x7fff
  20.  
  21. #if !defined(__FLAT__)
  22. #define MAXINT      0x7FFF
  23. #else    /* defined __FLAT__ */
  24. #define MAXINT      0x7fffffff
  25. #endif
  26.  
  27. #define MAXLONG     0x7fffffff
  28. #define HIBITS      0x8000
  29. #define HIBITI      0x8000
  30. #define HIBITL      0x80000000
  31.  
  32. #define DMAXEXP     308
  33. #define FMAXEXP     38
  34. #define DMINEXP     -307
  35. #define FMINEXP     -37
  36.  
  37. #define MAXDOUBLE   1.7976931348623158E+308
  38. #define MAXFLOAT    3.40282347E+38F
  39. #define MINDOUBLE   2.2250738585072014E-308
  40. #define MINFLOAT    1.17549435E-38F
  41. #define MAXLDOUBLE  1.1897314953572317649E+4932L
  42. #define MINLDOUBLE  3.362103143112094E-4917L /* This isn't accurate, but it */
  43.                                              /* will do for now. The real   */
  44.                                              /* value should be:            */
  45.                                              /* 3.362103143112094E-4932L    */
  46.  
  47. #define DSIGNIF     53
  48. #define FSIGNIF     24
  49.  
  50. #define DMAXPOWTWO  0x3FF
  51. #define FMAXPOWTWO  0x7F
  52. #define DEXPLEN     11
  53. #define FEXPLEN     8
  54. #define EXPBASE     2
  55. #define IEEE        1
  56. #define LENBASE     1
  57. #define HIDDENBIT   1
  58. #define LN_MAXDOUBLE    7.0978E+2
  59. #define LN_MINDOUBLE    -7.0840E+2
  60.  
  61. #endif  /* __VALUES_H */
  62.