24 #include "kk_Array.hh"
32 # define INTEGER_MIN LONG_MIN
33 # define INTEGER_MAX LONG_MAX
37 # define INTEGER_MIN INT_MIN
38 # define INTEGER_MAX INT_MAX
90 # define REAL_RADIX FLT_RADIX
91 # define REAL_ROUNDS FLT_ROUNDS
92 # define REAL_DIG DBL_DIG
93 # define REAL_EPSILON DBL_EPSILON
94 # define REAL_MANT_DIG DBL_MANT_DIG
95 # define REAL_MAX DBL_MAX
96 # define REAL_MAX_EXP DBL_MAX_EXP
97 # define REAL_MIN DBL_MIN
98 # define REAL_MIN_EXP DBL_MIN_EXP
104 # endif // USE_DOUBLE
131 # define REAL_RADIX FLT_RADIX
132 # define REAL_ROUNDS FLT_ROUNDS
133 # define REAL_DIG FLT_DIG
134 # define REAL_EPSILON FLT_EPSILON
135 # define REAL_MANT_DIG FLT_MANT_DIG
136 # define REAL_MAX FLT_MAX
137 # define REAL_MAX_EXP FLT_MAX_EXP
138 # define REAL_MIN FLT_MIN
139 # define REAL_MIN_EXP FLT_MIN_EXP
155 typedef KK::Array<int> intSerialArray;
156 typedef KK::Array<float> floatSerialArray;
157 typedef KK::Array<double> doubleSerialArray;
167 # define BL_SPACEDIM 3
169 # define BL_ARCH_IEEE
171 #if ( defined(__alpha) || defined(__sgi) )
172 inline ostream&
operator<<(ostream&
s,
const long double& x)
173 { s << (double)x;
return s; }
174 #endif // ( defined(__alpha) || defined(__sgi) )
176 #if !defined(OV_BOOL_DEFINED) && !defined(USE_PPP)
180 #ifdef OV_EXCEPTIONS_NOT_SUPPORTED
181 #define throw exit(1); cout <<
190 using GUITypes::intSerialArray;
191 using GUITypes::floatSerialArray;
192 using GUITypes::doubleSerialArray;
196 substring(
const std::string &
s,
const int startPosition,
const int endPosition )
201 return s.substr(startPosition,endPosition-startPosition+1);
206 matches(
const std::string & s,
const char *name )
212 int lenName=strlen(name);
213 if( s.substr(0,lenName)==name )
219 #define getCPU KK::getcpu
234 return s.find(m)==0 ? m.length() : 0;