home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / software / topware / partlogic / partlogic-0.57-iso.exe / partlogic-0.57.iso / system / headers / values.h < prev    next >
C/C++ Source or Header  |  2005-08-29  |  2KB  |  61 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2005 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  values.h
  20. //
  21.  
  22. // This is the Visopsys version of the standard header file values.h
  23.  
  24.  
  25. #if !defined(_VALUES_H)
  26.  
  27. #include <limits.h>
  28. #include <float.h>
  29.  
  30. #define CHARBITS        (sizeof(char) * CHAR_BIT)
  31. #define SHORTBITS       (sizeof(short int) * CHAR_BIT)
  32. #define INTBITS            (sizeof(int) * CHAR_BIT)
  33. #define LONGBITS        (sizeof(long int) * CHAR_BIT)
  34. #define PTRBITS            (sizeof(char *) * CHAR_BIT)
  35. #define DOUBLEBITS      (sizeof(double) * CHAR_BIT)
  36. #define FLOATBITS       (sizeof(float) * CHAR_BIT)
  37.  
  38. #define MINSHORT        SHRT_MIN
  39. #define    MININT          INT_MIN
  40. #define    MINLONG         LONG_MIN
  41.  
  42. #define    MAXSHORT        SHRT_MAX
  43. #define    MAXINT          INT_MAX
  44. #define    MAXLONG         LONG_MAX
  45.  
  46. #define HIBITS          MINSHORT
  47. #define HIBITL          MINLONG
  48.  
  49. #define    MAXDOUBLE       DBL_MAX
  50. #define    MAXFLOAT        FLT_MAX
  51. #define    MINDOUBLE       DBL_MIN
  52. #define    MINFLOAT        FLT_MIN
  53. #define    DMINEXP         DBL_MIN_EXP
  54. #define    FMINEXP         FLT_MIN_EXP
  55. #define    DMAXEXP         DBL_MAX_EXP
  56. #define    FMAXEXP         FLT_MAX_EXP
  57. #define BITSPERBYTE     CHAR_BIT
  58.  
  59. #define    _VALUES_H
  60. #endif
  61.