include last power of two in fast-path ⌽˘
This commit is contained in:
parent
6e085a024b
commit
64b69700c5
@ -505,7 +505,7 @@ B for_cells_c1(B f, u32 xr, u32 cr, u32 k, B x, u32 chr) { // F⎉cr x; array x,
|
|||||||
ux csz = xsh[k];
|
ux csz = xsh[k];
|
||||||
if (csz<=1 || IA(x)==0) return x;
|
if (csz<=1 || IA(x)==0) return x;
|
||||||
u8 xe = TI(x,elType);
|
u8 xe = TI(x,elType);
|
||||||
if (cr==1 && csz<=64 && xe!=el_bit && csz < (128*8 >> arrTypeBitsLog(TY(x)))) {
|
if (cr==1 && csz<=64 && xe!=el_bit && csz <= (128*8 >> arrTypeBitsLog(TY(x)))) {
|
||||||
incG(x); // TODO proper shape moving
|
incG(x); // TODO proper shape moving
|
||||||
Arr* r = customizeShape(select_rows_direct(x, csz, cam, reverse_inds_64+64-csz, csz, el_i8));
|
Arr* r = customizeShape(select_rows_direct(x, csz, cam, reverse_inds_64+64-csz, csz, el_i8));
|
||||||
arr_shCopy(r, x);
|
arr_shCopy(r, x);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user