Loading...
Searching...
No Matches
SafeMath.h File Reference
#include <algorithm>
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  eonc
 RAII resource manager for the ARTn C library with global synchronization.
namespace  eonc::safemath

Functions

constexpr double eonc::safemath::safe_div (double num, double denom, double fallback=0.0)
constexpr double eonc::safemath::safe_recip (double x, double fallback=0.0)
double eonc::safemath::safe_acos (double x)
double eonc::safemath::safe_sqrt (double x)
double eonc::safemath::safe_atan_ratio (double num, double denom, double fallback=0.0)

Variables

constexpr double eonc::safemath::eps = 1e-300