Go to the documentation of this file.00001
00002
00003 #ifndef GAUDIALG_CHECKFORNAN_H
00004 #define GAUDIALG_CHECKFORNAN_H 1
00005
00006
00007
00008 #if defined(_WIN32)
00009 #include <float.h>
00010 namespace
00011 {
00012 inline int lfin ( double x ) { return _finite ( x ) ; }
00013 inline int lnan ( double x ) { return _isnan ( x ) ; }
00014 }
00015 #elif defined(__ICC)
00016 #include <mathimf.h>
00017 namespace
00018 {
00019 inline int lfin ( double x ) { return isfinite ( x ) ; }
00020 inline int lnan ( double x ) { return isnan ( x ) ; }
00021 }
00022 #else // GCC
00023 #include <cmath>
00024 namespace
00025 {
00026 inline int lfin ( double x ) { return std::isfinite ( x ) ; }
00027 inline int lnan ( double x ) { return std::isnan ( x ) ; }
00028 }
00029 #endif
00030
00031
00032
00033 #endif // GAUDIALG_CHECKFORNAN_H
00034