Lines Matching defs:carry
229 // Inf and NaN can't be rounded, and calculating `carry` below is known
249 // Only one element, no need to bubble up the carry
253 // Check if there's a carry, and bubble it back up the resulting intValues.
254 int64_t carry = static_cast<int64_t>(floor(unitsConverters_[lastIndex]->convertInverse(quantity) * (1 + DBL_EPSILON)));
255 if (carry <= 0) {
258 quantity -= unitsConverters_[lastIndex]->convert(static_cast<double>(carry));
259 intValues[lastIndex - 1] += carry;
263 carry = static_cast<int64_t>(floor(unitsConverters_[j]->convertInverse(static_cast<double>(intValues[j])) * (1 + DBL_EPSILON)));
264 if (carry <= 0) {
267 intValues[j] -= static_cast<int64_t>(round(unitsConverters_[j]->convert(static_cast<double>(carry))));
268 intValues[j - 1] += carry;