Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012

CheckForNaN.h

Go to the documentation of this file.
00001 // $Id: CheckForNaN.h,v 1.5 2007/10/19 10:18:23 marcocle Exp $
00002 // ============================================================================
00003 #ifndef GAUDIALG_CHECKFORNAN_H
00004 #define GAUDIALG_CHECKFORNAN_H 1
00005 // ============================================================================
00006 // Include files
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 // The END
00032 // ============================================================================
00033 #endif // GAUDIALG_CHECKFORNAN_H
00034 // ============================================================================
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:13 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004