added sampling

This commit is contained in:
Jean-Philippe Bossuat
2025-01-05 14:04:10 +01:00
parent 78cc0514ec
commit 4b8427c6b3
17 changed files with 181 additions and 32 deletions

View File

@@ -150,7 +150,6 @@ impl Table<u64>{
debug_assert!(*b < self.four_q, "b:{} q:{}", b, self.four_q);
a.reduce_once_assign(self.two_q);
let bt: u64 = self.prime.barrett.mul_external::<NONE>(t, *b);
debug_assert!(bt < self.two_q, "bt:{} two_q:{}", bt, self.two_q);
*b = *a + self.two_q-bt;
*a += bt;
if !LAZY {