File indexing completed on 2025-02-21 10:05:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
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
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
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
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
0087
0088
0089 #ifndef M_PI
0090 #define M_PI 3.14159265358979323846
0091 #endif
0092
0093 #endif