Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
19
libs/base/fast_math.cpp
Normal file
19
libs/base/fast_math.cpp
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue