Add glwe_normalize_tmp_bytes & update assertion error

This commit is contained in:
Pro7ech
2025-11-12 22:21:32 +01:00
parent b034ea8253
commit b11213c454
2 changed files with 16 additions and 5 deletions

View File

@@ -331,7 +331,11 @@ where
let scratch_thread_size = self.fhe_uint_prepare_tmp_bytes(cbt.block_size(), 1, res, bits, key);
assert!(scratch.available() >= threads * scratch_thread_size);
assert!(
scratch.available() >= threads * scratch_thread_size,
"scratch.available():{} < threads:{threads} * scratch_thread_size:{scratch_thread_size}",
scratch.available()
);
let chunk_size: usize = bit_count.div_ceil(threads);