From 64b69700c5fe7242a12bd0fe1f9e5582f28cfa9e Mon Sep 17 00:00:00 2001 From: dzaima Date: Mon, 29 Jul 2024 02:16:49 +0300 Subject: [PATCH] =?UTF-8?q?include=20last=20power=20of=20two=20in=20fast-p?= =?UTF-8?q?ath=20=E2=8C=BD=CB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/cells.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/cells.c b/src/builtins/cells.c index a9c22b3f..c6b8e38c 100644 --- a/src/builtins/cells.c +++ b/src/builtins/cells.c @@ -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]; if (csz<=1 || IA(x)==0) return x; 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 Arr* r = customizeShape(select_rows_direct(x, csz, cam, reverse_inds_64+64-csz, csz, el_i8)); arr_shCopy(r, x);