18#define ADOBE_HAS_C99_STD_MATH_H
41template <
typename A,
typename R>
50inline long lround_half_up(
double x) {
return static_cast<long>(std::floor(x + 0.5)); }
52inline long lround_half_up(
float x) {
return static_cast<long>(std::floor(x + 0.5f)); }
65template <
typename R,
typename A>
72template <
typename A,
typename R>
79 float operator()(
const A& x)
const {
return static_cast<float>(x); }
84 double operator()(
const A& x)
const {
return static_cast<double>(x); }
double round_half_up(double x)
long lround_half_up(double x)
R nearest_cast(const A &x)
double operator()(const A &x) const
float operator()(const A &x) const
R operator()(const A &x) const