home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / INC.PAK / VALUES.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  1KB  |  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. /*
  9.  *      C/C++ Run Time Library - Version 6.5
  10.  *
  11.  *      Copyright (c) 1987, 1994 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16. #if !defined(__VALUES_H)
  17. #define __VALUES_H
  18.  
  19. #if !defined(___DEFS_H)
  20. #include <_defs.h>
  21. #endif
  22.  
  23. #define BITSPERBYTE 8
  24. #define MAXSHORT    0x7FFF
  25.  
  26. #if !defined(__FLAT__)
  27. #define MAXINT      0x7FFF
  28. #else    /* defined __FLAT__ */
  29. #define MAXINT      0x7FFFFFFF
  30. #endif
  31.  
  32. #define MAXLONG     0x7FFFFFFFL
  33. #define HIBITS      0x8000
  34. #define HIBITI      0x8000
  35. #define HIBITL      0x80000000
  36.  
  37. #define DMAXEXP     308
  38. #define FMAXEXP     38
  39. #define DMINEXP     -307
  40. #define FMINEXP     -37
  41.  
  42. #define MAXDOUBLE   1.797693E+308
  43. #define MAXFLOAT    3.37E+38F
  44. #define MINDOUBLE   2.225074E-308
  45. #define MINFLOAT    8.43E-37F
  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.