41 #ifndef __EST_MATH_H__ 42 #define __EST_MATH_H__ 44 #if defined(__APPLE__) 46 extern "C" int isnan(
double);
70 #if defined(__svr4__) || defined(__SYSTYPE_SVR4__) 79 #if defined(__sun__) && defined(__sparc__) && !defined(__svr4__) 80 #define isnanf(X) isnan(X) 86 #define isnanf(X) __isnanf(X) 91 #define isnanf(X) isnan(X) 92 #define finite(X) isfinite(X) 97 #define isnanf(X) isnan(X) 101 #if defined(__APPLE__) 102 #define isnanf(X) isnan((double)(X)) 109 #if defined(__FreeBSD__) 114 #if defined(__CYGWIN__) 116 #define isnanf(X) isnan(X) 121 #if defined(SYSTEM_IS_WIN32) 122 #define isfinite(X) _finite(X) 123 #define finite(X) _finite(X) 124 #define round(X) win32_round(X) 125 inline double win32_round(
double d) {
return (d>0.0)?floor(d+0.5):ceil(d-0.5);}
131 #define MAXFLOAT ((float)3.0e+37) 134 #define FLT_MAX ((float)3.0e+37) 137 #define MINFLOAT ((float)1e-37) 140 #define FLT_MIN ((float)1e-37) 144 #define PI 3.14159265358979323846 151 #define RAND_MAX 32767 154 #define SAFE_LOG_ZERO -9538 156 #define EST_NINT(X) ((int)((X)+0.5)) double safe_log(const double x)
double safe_exp10(const double x)
double safe_log10(const double x)
double safe_exp(const double x)