Searched refs:maxval (Results 1 – 1 of 1) sorted by relevance
152 static inline int64_t toint(double x, int64_t maxval, double& err) { in toint() argument153 double val = x * maxval; in toint()159 static inline int64_t toint(double x, int64_t maxval) { in toint() argument160 return static_cast<int64_t>(floor(x * maxval + 0.5)); in toint()