From 37c872786ee9a0ffae5fcbe483dd96402ecb0a15 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Wed, 3 Dec 2025 17:58:33 +0100 Subject: [PATCH] chore: add ref --- tfhe/src/core_crypto/commons/math/decomposition/iter.rs | 1 + tfhe/src/core_crypto/fft_impl/fft128_u128/crypto/ggsw.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tfhe/src/core_crypto/commons/math/decomposition/iter.rs b/tfhe/src/core_crypto/commons/math/decomposition/iter.rs index 03a0a9976..503b0ca00 100644 --- a/tfhe/src/core_crypto/commons/math/decomposition/iter.rs +++ b/tfhe/src/core_crypto/commons/math/decomposition/iter.rs @@ -136,6 +136,7 @@ fn decomposition_bit_trick( ((res.wrapping_sub(Scalar::ONE) | state) & res) >> (base_log - 1) } +/// See [reference](https://eprint.iacr.org/2021/1161.pdf) #[inline] pub(crate) fn decompose_one_level( base_log: usize, diff --git a/tfhe/src/core_crypto/fft_impl/fft128_u128/crypto/ggsw.rs b/tfhe/src/core_crypto/fft_impl/fft128_u128/crypto/ggsw.rs index 0f56d0fe5..3aec972d5 100644 --- a/tfhe/src/core_crypto/fft_impl/fft128_u128/crypto/ggsw.rs +++ b/tfhe/src/core_crypto/fft_impl/fft128_u128/crypto/ggsw.rs @@ -235,6 +235,7 @@ pub fn add_external_product_assign_split