mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 06:38:06 -05:00
chore: add ref
This commit is contained in:
committed by
IceTDrinker
parent
85a281efc5
commit
37c872786e
@@ -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,
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user