Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_values_h_
  3. #define __dj_include_values_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. #define BITSPERBYTE 8
  16.  
  17. #define CHARBITS    8
  18. #define SHORTBITS   16
  19. #define INTBITS     32
  20. #define LONGBITS    32
  21. #define PTRBITS     32
  22. #define DOUBLEBITS  64
  23. #define FLOATBITS   32
  24.  
  25. #define MINSHORT    ((short)0x8000)
  26. #define MININT      ((int)0x80000000L)
  27. #define MINLONG     ((long)0x80000000L)
  28.  
  29. #define MAXSHORT    ((short)0x7fff)
  30. #define MAXINT      ((int)0x7fffffff)
  31. #define MAXLONG     ((long)0x7fffffff)
  32.  
  33. #define MAXDOUBLE   1.79769313486231570e+308
  34. #define MAXFLOAT    ((float)3.40282346638528860e+38)
  35. #define MINDOUBLE   2.22507385850720140e-308
  36. #define MINFLOAT    ((float)1.17549435082228750e-38)
  37. #define _IEEE       0
  38. #define _DEXPLEN    11
  39. #define _FEXPLEN    8
  40. #define _HIDDENBIT  1
  41. #define DMAXEXP     ((1 << _DEXPLEN - 1) - 1 + _IEEE)
  42. #define FMAXEXP     ((1 << _FEXPLEN - 1) - 1 + _IEEE)
  43. #define DMINEXP     (-DMAXEXP)
  44. #define FMINEXP     (-FMAXEXP)
  45.  
  46. #endif /* !_POSIX_SOURCE */
  47. #endif /* !__STRICT_ANSI__ */
  48. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  49.  
  50. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  51. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  52.  
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif /* !__dj_include_values_h_ */
  58.