Lines Matching defs:upward
140 //! `upward` is true, otherwise down.
141 double FloatFormat::round (double d, bool upward) const
147 const double roundFrac = upward ? deCeil(shiftFrac) : deFloor(shiftFrac);
202 double FloatFormat::roundOut (double d, bool upward, bool roundUnderOverflow) const
207 if (roundUnderOverflow && exp > m_maxExp && (upward == (d < 0.0)))
210 return round(d, upward);
304 double NormalizedFormat::round(double d, bool upward) const
313 const double normValue = upward ? deCeil(value) : deFloor(value);
326 double NormalizedFormat::roundOut (double d, bool upward, bool roundUnderOverflow) const
328 if (roundUnderOverflow && deAbs(d) > 1.0 && (upward == (d < 0.0)))
331 return round(d, upward);