Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:05:28

0001 /*
0002  *  cern_types.h  --
0003  *  Separate out the type declaration for storage
0004  *  size sensitive quantities.
0005  *
0006  *  Original: 25-Nov-1994 09:53
0007  *
0008  *  Author:   Maarten Ballintijn <Maarten.Ballintijn@cern.ch>
0009  *
0010  *  $Id$
0011  *
0012  *  $Log$
0013  *  Revision 1.7  1996/04/23 18:37:54  maartenb
0014  *  - Add RCS keywords
0015  *
0016  *
0017  */
0018 
0019 #ifndef CERN_CERN_TYPES
0020 #define CERN_CERN_TYPES
0021 
0022 #include    <float.h>
0023 #include    <limits.h>
0024 
0025 #include    "bool.h"
0026 
0027 
0028 typedef char *          String;
0029 
0030 #define QP_STR_MAX  32
0031 
0032 typedef struct _string32_ {
0033     char    s[QP_STR_MAX];
0034 } String32;
0035 
0036 
0037 typedef unsigned int        UInt32;
0038 
0039 #ifndef UINT32_MAX
0040 #define UINT32_MAX  UINT_MAX
0041 #endif
0042 
0043 
0044 /* typedef unsigned long long   UInt64; */
0045 typedef unsigned long       UInt64;
0046 
0047 #ifndef UINT64_MAX
0048 #define UINT64_MAX  ULONG_MAX
0049 #endif
0050 
0051 
0052 typedef int         Int32;
0053 
0054 #ifndef INT32_MAX
0055 #define INT32_MAX   INT_MAX
0056 #endif
0057 #ifndef INT32_MIN
0058 #define INT32_MIN   INT_MIN
0059 #endif
0060 
0061 
0062 /* typedef long long        Int64; */
0063 typedef long            Int64;
0064 
0065 #ifndef INT64_MAX
0066 #define INT64_MAX   LONG_MAX
0067 #endif
0068 #ifndef INT64_MIN
0069 #define INT64_MIN   LONG_MIN
0070 #endif
0071 
0072 
0073 typedef float           Float32;
0074 
0075 #define FLOAT32_MAX FLT_MAX
0076 #define FLOAT32_MIN FLT_MIN
0077 
0078 #define FLOAT_INT_LIMIT 1.0e10  /* a garanteed minimal value with no fraction */
0079 
0080 
0081 typedef double          Float64;
0082 
0083 #define FLOAT64_MAX DBL_MAX
0084 #define FLOAT64_MIN DBL_MIN
0085 
0086 #define DOUBLE_INT_LIMIT    1.0e20  /* a garanteed minimal value with no fraction */
0087 
0088 
0089 #ifndef M_PI
0090 #define M_PI    3.14159265358979323846
0091 #endif
0092 
0093 #endif  /*  CERN_CERN_TYPES */