treewide: get rid of C math function usage

Boost does not seem to offer an overload for lrint.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-02-03 15:50:46 -08:00
parent a78841d6a9
commit 177371a003
7 changed files with 15 additions and 11 deletions

View File

@@ -31,10 +31,16 @@
#define MATH_HXX
#ifdef __UCLIBC__
#include <boost/math/special_functions/pow.hpp>
#include <boost/math/special_functions/round.hpp>
using boost::math::iround;
using boost::math::pow;
using boost::math::lround;
#define lrint iround
#else
#include <cmath>
using std::pow;
using std::lrint;
using std::lround;
#endif