gem5/ext/dsent/libutil/MathUtil.h

22 lines
373 B
C
Raw Normal View History

#ifndef __MATH_H__
#define __MATH_H__
#include <cmath>
namespace LibUtil
{
class Math
{
public:
static const double epsilon;
static inline bool isEqual(double value1_, double value2_)
{
return (std::fabs(value1_ - value2_) < epsilon);
}
};
} // namespace LibUtil
#endif // __MATH_H__