use cpyHArr instead of a getter loop
This commit is contained in:
parent
dad47cf391
commit
90dd740bfc
@ -174,11 +174,9 @@ B SORT_C1(B t, B x) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
B xf = getFillQ(x);
|
B xf = getFillQ(x);
|
||||||
HArr_p ra = m_harrUv(n);
|
HArr* r0 = cpyHArr(inc(x));
|
||||||
SGet(x)
|
CAT(GRADE_UD(bA,bD),tim_sort)(r0->a, n);
|
||||||
for (usz i = 0; i < n; i++) ra.a[i] = Get(x,i);
|
r = withFill(taga(r0), xf);
|
||||||
CAT(GRADE_UD(bA,bD),tim_sort)(ra.a, n);
|
|
||||||
r = withFill(ra.b,xf);
|
|
||||||
}
|
}
|
||||||
decG(x);
|
decG(x);
|
||||||
return FL_SET(r, CAT(fl,GRADE_UD(asc,dsc)));
|
return FL_SET(r, CAT(fl,GRADE_UD(asc,dsc)));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user