home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / values.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.6 KB  |  65 lines

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