Searched refs:from_pos (Results 1 – 3 of 3) sorted by relevance
57 size_t from_pos = offset & mask; in CopyLiteralsToByteArray() local61 if (from_pos + insert_len > mask) { in CopyLiteralsToByteArray()62 size_t head_size = mask + 1 - from_pos; in CopyLiteralsToByteArray()63 memcpy(literals + pos, data + from_pos, head_size); in CopyLiteralsToByteArray()64 from_pos = 0; in CopyLiteralsToByteArray()69 memcpy(literals + pos, data + from_pos, insert_len); in CopyLiteralsToByteArray()72 from_pos = (from_pos + insert_len + CommandCopyLen(&cmds[i])) & mask; in CopyLiteralsToByteArray()
87 auto from_pos = on.find(from); in replace() local88 if (from_pos != std::string::npos) { in replace()89 on.replace(from_pos, from.length(), to); in replace()
1103 int from_pos = 0; in GatherNd() local1105 from_pos += indices_data[i * res.indices_nd + j] * res.dims_to_count[j]; in GatherNd()1107 std::memcpy(output_data + i * res.slice_size, params_data + from_pos, in GatherNd()1125 int from_pos = 0; in GatherNdString() local1127 from_pos += indices_data[i * res.indices_nd + j] * res.dims_to_count[j]; in GatherNdString()1130 buffer.AddString(GetString(params_data, from_pos + j)); in GatherNdString()