00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00019
00020
00021
00022
00023
00024 #ifndef escript_system_dep_h
00025 #define escript_system_dep_h
00026
00027
00028 #ifdef NO_FLOAT_H
00029 # define DBL_EPSILON 2.2204460492503131E-16
00030 # define DBL_MAX 1.7976931348623157E+308
00031 # define DBL_MIN 2.2250738585072014E-308
00032 #else
00033 # include <float.h>
00034 #endif
00035 #include <limits.h>
00036
00037 #if defined(_WIN32) && defined(__INTEL_COMPILER)
00038
00039
00040
00041
00042
00043
00044 # include <mathimf.h>
00045 # else
00046 # include <math.h>
00047 # endif
00048
00049 #ifndef M_PI
00050 # define M_PI 3.14159265358979323846
00051 #endif
00052
00053 #ifndef SQRT_DBL_EPSILON
00054 # define SQRT_DBL_EPSILON 1.4901161193847656e-08
00055 #endif
00056
00057 #ifndef M_LN2
00058 # define M_LN2 0.69314718055994530942
00059 #endif
00060
00061 #define ESCRIPT_DLL_API
00062
00063 #ifdef _WIN32
00064 # ifndef ESCRIPT_STATIC_LIB
00065 # undef ESCRIPT_DLL_API
00066 # ifdef ESCRIPT_EXPORTS
00067 # define ESCRIPT_DLL_API __declspec(dllexport)
00068 # else
00069 # define ESCRIPT_DLL_API __declspec(dllimport)
00070 # endif
00071 # endif
00072 #endif
00073
00074 #ifndef ESCRIPT_MAX_DATA_RANK
00075 #define ESCRIPT_MAX_DATA_RANK 4
00076 #endif
00077
00078
00079 #ifndef __const
00080 # if (defined __STDC__ && __STDC__) || defined __cplusplus
00081 # define __const const
00082 # else
00083 # define __const
00084 # endif
00085 #endif
00086
00087 #endif