/home/coin/SVN-release/CoinAll-1.1.0/OS/src/OSUtils/OSParameters.h

Go to the documentation of this file.
00001 
00017 // CoinFinite includes <cmath> (I think) which causes a problem 
00018 //#include<CoinFinite.hpp>
00019 
00020 //kipp fix up the infinity issue
00021 //kipp define OSINFINITY to COIN_DBL_MAX
00022 
00023 
00024 
00025 #ifndef OSPARAMETERS
00026 #define OSPARAMETERS
00027 
00028 #include "OSConfig.h"
00029 
00030 #ifdef HAVE_CMATH
00031 # include <cmath>
00032 #else
00033 # ifdef HAVE_MATH_H
00034 #  include <math.h>
00035 # else
00036 #  error "don't have header file for math"
00037 # endif
00038 #endif
00039 #ifdef HAVE_CFLOAT
00040 # include <cfloat>
00041 #else
00042 # ifdef HAVE_FLOAT_H
00043 #  include <float.h>
00044 # endif
00045 #endif
00046 #ifdef HAVE_CIEEEFP
00047 # include <cieeefp>
00048 #else
00049 # ifdef HAVE_IEEEFP_H
00050 #  include <ieeefp.h>
00051 # endif
00052 #endif
00053 
00054 #ifdef HAVE_CSTRING
00055 # include <cstring>
00056 #else
00057 # ifdef HAVE_STRING_H
00058 #  include <string.h>
00059 # else
00060 #  error "don't have header file for string"
00061 # endif
00062 #endif
00063 
00064 
00065 #ifdef HAVE_CSTDLIB
00066 # include <cstdlib>
00067 #else
00068 # ifdef HAVE_STDLIB_H
00069 #  include <stdlib.h>
00070 # endif
00071 #endif
00072 
00073 
00074 //#include <limits.h>
00075 //#ifdef INFINITY //This is the definition in the ISO C99 standard.
00076 //      #define OSINFINITY INFINITY
00077 //#else
00078 //      #define OSINFINITY 1e20
00079 //#endif
00080 
00081 //#define OSINFINITY 1e30
00082 
00083 #define OS_E_VALUE exp(1.0)
00084 #define OS_PI_VALUE 2*asin(1.0)
00085 
00089 #define OS_NEAR_EQUAL 1e-2
00090 
00091 #ifdef NAN 
00092         #define OSNAN NAN
00093 #elif defined NaN
00094         #define OSNAN NaN
00095 #elif defined nan
00096         #define OSNAN nan
00097 #else   
00098         #define OSNAN -883849830
00099 #endif
00100 
00101 #ifdef DBL_MAX
00102         #define OSDBL_MAX DBL_MAX
00103 #elif defined HUGE_VAL
00104         //#define OSDBL_MAX OSINFINITY
00105         #define OSDBL_MAX HUGE_VAL
00106 #else
00107         #define OSDBL_MAX 1e30
00108 #endif
00109 
00110 
00111 #ifdef INT_MAX
00112         #define OSINT_MAX INT_MAX
00113 #else
00114         #define OSINT_MAX 2147483647
00115 #endif
00116 
00117 #ifndef XSLT_LOCATION
00118         #define XSLT_LOCATION  OSSRCDIR;
00119 #endif
00120 
00121 #endif

Generated on Sun Nov 14 14:06:39 2010 for Coin-All by  doxygen 1.4.7