mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
20 lines
316 B
C++
20 lines
316 B
C++
// 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
|