aboutsummaryrefslogtreecommitdiff
path: root/libs/base/fast_math.cpp
blob: dfc91cee4a49be6f0323cf994c6f92b40f3be8a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Separate cpp for different compiler flags.
#include <cmath>
#include <limits>

namespace math
{
double Nan()
{
  return std::numeric_limits<double>::quiet_NaN();
}
double Infinity()
{
  return std::numeric_limits<double>::infinity();
}
bool is_finite(double t)
{
  return std::isfinite(t);
}
}  // namespace math