chore: add ref

This commit is contained in:
Arthur Meyre
2025-12-03 17:58:33 +01:00
committed by IceTDrinker
parent 85a281efc5
commit 37c872786e
2 changed files with 4 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ fn decomposition_bit_trick<Scalar: UnsignedInteger>(
((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<S: UnsignedInteger>(
base_log: usize,

View File

@@ -235,6 +235,7 @@ pub fn add_external_product_assign_split<ContOutLo, ContOutHi, ContGgsw, ContGlw
);
}
/// See [`collect_next_term_split_scalar`]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[cfg(feature = "avx512")]
pub(crate) fn collect_next_term_split_avx512(
@@ -370,6 +371,7 @@ pub(crate) fn collect_next_term_split_avx512(
});
}
/// See [`collect_next_term_split_scalar`]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub(crate) fn collect_next_term_split_avx2(
simd: pulp::x86::V3,
@@ -511,6 +513,7 @@ pub(crate) fn collect_next_term_split_avx2(
});
}
/// See [`crate::core_crypto::commons::math::decomposition::decompose_one_level`]
pub(crate) fn collect_next_term_split_scalar(
glwe_decomp_term_lo: &mut [u64],
glwe_decomp_term_hi: &mut [u64],