Searched refs:to_add (Results 1 – 4 of 4) sorted by relevance
84 T to_add = alignment - remainder; in AlignTo() local85 if (to_add > std::numeric_limits<T>::max() - base) { in AlignTo()88 *out = base + to_add; in AlignTo()
184 uint64_t to_add = alignment - remainder; in CalculateBlockDeviceSize() local185 if (to_add > std::numeric_limits<uint64_t>::max() - ret) { in CalculateBlockDeviceSize()188 ret += to_add; in CalculateBlockDeviceSize()
579 size_t to_add = 0; in EmitSequenceData() local585 to_add = std::min(num_ops, max_ops); in EmitSequenceData()586 op.data_length = static_cast<uint16_t>(to_add * sizeof(uint32_t)); in EmitSequenceData()591 num_ops -= to_add; in EmitSequenceData()592 data += to_add; in EmitSequenceData()
202 uint64_t to_add = std::min(cluster_ops, (fd_size_ - pos) / sizeof(CowOperation)); in ParseOps() local203 if (to_add == 0) break; in ParseOps()204 ops_buffer->resize(current_op_num + to_add); in ParseOps()206 to_add * sizeof(CowOperation))) { in ParseOps()