Gaudi Framework, version v21r9

Home   Generated: 3 May 2010

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 #ifndef _WIN32
00009 #include <cmath>
00010 namespace 
00011 {
00012   inline int lfin ( double x ) { return  std::isfinite ( x ) ; }
00013   inline int lnan ( double x ) { return  std::isnan  ( x ) ; }
00014 }
00015 #else
00016 #include <float.h>
00017 namespace 
00018 {
00019   inline int lfin ( double x ) { return  _finite ( x ) ; }
00020   inline int lnan ( double x ) { return  _isnan  ( x ) ; }
00021 }
00022 #endif
00023 // ============================================================================
00024 // The END 
00025 // ============================================================================
00026 #endif // GAUDIALG_CHECKFORNAN_H
00027 // ============================================================================

Generated at Mon May 3 12:13:56 2010 for Gaudi Framework, version v21r9 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004