Searched refs:rounded_toward_zero (Results 1 – 3 of 3) sorted by relevance
68 const IntegralType rounded_toward_zero = numerator / denominator; in CeilOrFloorOfRatio() local69 const IntegralType intermediate_product = rounded_toward_zero * denominator; in CeilOrFloorOfRatio()81 const bool needs_adjustment = (rounded_toward_zero >= 0) && in CeilOrFloorOfRatio()85 const IntegralType ceil_of_ratio = rounded_toward_zero + adjustment; in CeilOrFloorOfRatio()89 const bool needs_adjustment = (rounded_toward_zero <= 0) && in CeilOrFloorOfRatio()93 const IntegralType floor_of_ratio = rounded_toward_zero - adjustment; in CeilOrFloorOfRatio()
102 const IntegralType rounded_toward_zero = numerator / denominator; in CeilOrFloorOfRatio() local103 const IntegralType intermediate_product = rounded_toward_zero * denominator; in CeilOrFloorOfRatio()117 (rounded_toward_zero >= 0) && in CeilOrFloorOfRatio()121 const IntegralType ceil_of_ratio = rounded_toward_zero + adjustment; in CeilOrFloorOfRatio()126 (rounded_toward_zero <= 0) && in CeilOrFloorOfRatio()130 const IntegralType floor_of_ratio = rounded_toward_zero - adjustment; in CeilOrFloorOfRatio()
844 const unsigned int rounded_toward_zero = num / denom;845 if (num > rounded_toward_zero * denom) {846 return rounded_toward_zero + 1;848 return rounded_toward_zero;