From b6e418ed5bb703e79cac183b255202e70fc27d43 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 30 Oct 2024 15:09:56 -0400 Subject: [PATCH] Fix modular permutation example in comment --- src/singeli/src/replicate.singeli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/singeli/src/replicate.singeli b/src/singeli/src/replicate.singeli index 9908eabb..fd23d8d4 100644 --- a/src/singeli/src/replicate.singeli +++ b/src/singeli/src/replicate.singeli @@ -693,7 +693,7 @@ def rep_const_bool_small_odd{W=[wl](u64), max_wv, wv, get_perm_x, output} = { def fixed_loop{k} = { assert{wv == k} while (1) { - # e.g. 01234567 to 05316427 on each byte for k==3, ew==8 + # e.g. 01234567 to 03614725 on each byte for k==3, ew==8 xv := get_perm_x{} # Overhang from previous 64-bit elements def ix = 64*slice{iota{k},1} // k # bits that overhang within a word