Lines Matching full:other
443 * other has its reference count increased.
447 struct perf_cpu_map *other) in perf_cpu_map__merge() argument
454 if (perf_cpu_map__is_subset(orig, other)) in perf_cpu_map__merge()
456 if (perf_cpu_map__is_subset(other, orig)) { in perf_cpu_map__merge()
458 return perf_cpu_map__get(other); in perf_cpu_map__merge()
461 tmp_len = __perf_cpu_map__nr(orig) + __perf_cpu_map__nr(other); in perf_cpu_map__merge()
468 while (i < __perf_cpu_map__nr(orig) && j < __perf_cpu_map__nr(other)) { in perf_cpu_map__merge()
469 if (__perf_cpu_map__cpu(orig, i).cpu <= __perf_cpu_map__cpu(other, j).cpu) { in perf_cpu_map__merge()
470 if (__perf_cpu_map__cpu(orig, i).cpu == __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__merge()
474 tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++); in perf_cpu_map__merge()
480 while (j < __perf_cpu_map__nr(other)) in perf_cpu_map__merge()
481 tmp_cpus[k++] = __perf_cpu_map__cpu(other, j++); in perf_cpu_map__merge()
491 struct perf_cpu_map *other) in perf_cpu_map__intersect() argument
498 if (perf_cpu_map__is_subset(other, orig)) in perf_cpu_map__intersect()
500 if (perf_cpu_map__is_subset(orig, other)) in perf_cpu_map__intersect()
501 return perf_cpu_map__get(other); in perf_cpu_map__intersect()
503 tmp_len = max(__perf_cpu_map__nr(orig), __perf_cpu_map__nr(other)); in perf_cpu_map__intersect()
509 while (i < __perf_cpu_map__nr(orig) && j < __perf_cpu_map__nr(other)) { in perf_cpu_map__intersect()
510 if (__perf_cpu_map__cpu(orig, i).cpu < __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__intersect()
512 else if (__perf_cpu_map__cpu(orig, i).cpu > __perf_cpu_map__cpu(other, j).cpu) in perf_cpu_map__intersect()