From 8814a7e66e5f98b12bb82995195f7b8408956da2 Mon Sep 17 00:00:00 2001 From: dzaima Date: Tue, 21 Nov 2023 02:41:17 +0200 Subject: [PATCH] =?UTF-8?q?use=202x=20unroll=20for=20i16=E2=86=92u1=20copy?= =?UTF-8?q?ing=20to=20utilize=20two-vector=20homMask?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/singeli/src/copy.singeli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/singeli/src/copy.singeli b/src/singeli/src/copy.singeli index d9b9623f..cf70423d 100644 --- a/src/singeli/src/copy.singeli +++ b/src/singeli/src/copy.singeli @@ -46,7 +46,7 @@ fn copy{X, R}(x: *void, r: *void, l:u64, xRaw: *void) : void = { def XU = ty_u{XV} def op{x} = (XU~~x) == XU~~XV**1 - def unr = max{8/bulk, 1} + def unr = if (hasarch{'X86_64'} and width{X}==16) 2 else max{8/bulk, 1} def bulk2 = bulk*unr xi:ux = 0 @forNZ (i to cdiv{l,bulk2}) {