Add splice u8 and u16

This commit is contained in:
Pro7ech
2025-10-29 21:02:57 +01:00
parent 8743eeb800
commit f03bb4931b
5 changed files with 247 additions and 52 deletions

View File

@@ -5,8 +5,8 @@ use poulpy_backend::FFT64Ref;
use crate::tfhe::{
bdd_arithmetic::tests::test_suite::{
TestContext, test_bdd_add, test_bdd_and, test_bdd_or, test_bdd_prepare, test_bdd_sll, test_bdd_slt, test_bdd_sltu,
test_bdd_sra, test_bdd_srl, test_bdd_sub, test_bdd_xor, test_glwe_to_glwe_blind_rotation,
test_scalar_to_ggsw_blind_rotation,
test_bdd_sra, test_bdd_srl, test_bdd_sub, test_bdd_xor, test_fhe_uint_splice_u8, test_fhe_uint_splice_u16,
test_glwe_to_glwe_blind_rotation, test_scalar_to_ggsw_blind_rotation,
},
blind_rotation::CGGI,
};
@@ -14,6 +14,16 @@ use crate::tfhe::{
static TEST_CONTEXT_CGGI_FFT64_REF: LazyLock<TestContext<CGGI, FFT64Ref>> =
LazyLock::new(|| TestContext::<CGGI, FFT64Ref>::new());
#[test]
fn test_fhe_uint_splice_u8_fft64_ref() {
test_fhe_uint_splice_u8(&TEST_CONTEXT_CGGI_FFT64_REF)
}
#[test]
fn test_fhe_uint_splice_u16_fft64_ref() {
test_fhe_uint_splice_u16(&TEST_CONTEXT_CGGI_FFT64_REF)
}
#[test]
fn test_glwe_to_glwe_blind_rotation_fft64_ref() {
test_glwe_to_glwe_blind_rotation(&TEST_CONTEXT_CGGI_FFT64_REF)