00001 // $Id: Lomont.h,v 1.1 2008/11/08 15:03:38 ibelyaev Exp $ 00002 // ============================================================================ 00003 #ifndef LHCBMATH_LOMONT_H 00004 #define LHCBMATH_LOMONT_H 1 00005 // ============================================================================ 00006 namespace LHCb 00007 { 00008 namespace Math 00009 { 00010 // ======================================================================== 00049 bool lomont_compare_float 00050 ( const float af , 00051 const float bf , 00052 const unsigned short maxULPs = 100 ) ; 00053 // ======================================================================== 00080 bool lomont_compare_double 00081 ( const double af , 00082 const double bf , 00083 const unsigned int maxULPs ) ; 00084 // ======================================================================== 00101 float next_float ( const float af , const short ulps ) ; 00102 // ======================================================================== 00119 double next_double ( const double af , const short ulps ) ; 00120 // ======================================================================== 00121 } // end of namespace LHCb::Math 00122 // ========================================================================== 00123 } // end of namespace LHCb 00124 // ============================================================================ 00125 // The END 00126 // ============================================================================ 00127 #endif // LHCBMATH_LOMONT_H 00128 // ============================================================================