poulpy/poulpy-schemes/src/tfhe/bdd_arithmetic/tests/fft64_ref.rs
poulpy-schemes/src/tfhe/bdd_arithmetic/tests/fft64_ref.rsRaw
1use std::sync::LazyLock;
2
3use poulpy_backend::FFT64Ref;
4
5use crate::tfhe::{
6 bdd_arithmetic::tests::test_suite::{
7 TestContext, test_bdd_add, test_bdd_and, test_bdd_or, test_bdd_prepare, test_bdd_sll, test_bdd_slt, test_bdd_sltu,
8 test_bdd_sra, test_bdd_srl, test_bdd_sub, test_bdd_xor, test_fhe_uint_sext, test_fhe_uint_splice_u8,
9 test_fhe_uint_splice_u16, test_glwe_blind_selection, test_glwe_to_glwe_blind_rotation,
10 test_scalar_to_ggsw_blind_rotation,
11 },
12 blind_rotation::CGGI,
13};
14
15static TEST_CONTEXT_CGGI_FFT64_REF: LazyLock<TestContext<CGGI, FFT64Ref>> =
16 LazyLock::new(|| TestContext::<CGGI, FFT64Ref>::new());
17
18#[test]
19fn test_fhe_uint_sext_fft64_ref() {
20 test_fhe_uint_sext(&TEST_CONTEXT_CGGI_FFT64_REF);
21}
22
23#[test]
24fn test_glwe_blind_selection_fft64_ref() {
25 test_glwe_blind_selection(&TEST_CONTEXT_CGGI_FFT64_REF)
26}
27
28#[test]
29fn test_fhe_uint_splice_u8_fft64_ref() {
30 test_fhe_uint_splice_u8(&TEST_CONTEXT_CGGI_FFT64_REF)
31}
32
33#[test]
34fn test_fhe_uint_splice_u16_fft64_ref() {
35 test_fhe_uint_splice_u16(&TEST_CONTEXT_CGGI_FFT64_REF)
36}
37
38#[test]
39fn test_glwe_to_glwe_blind_rotation_fft64_ref() {
40 test_glwe_to_glwe_blind_rotation(&TEST_CONTEXT_CGGI_FFT64_REF)
41}
42
43#[test]
44fn test_scalar_to_ggsw_blind_rotation_fft64_ref() {
45 test_scalar_to_ggsw_blind_rotation(&TEST_CONTEXT_CGGI_FFT64_REF)
46}
47
48#[test]
49fn test_bdd_prepare_fft64_ref() {
50 test_bdd_prepare(&TEST_CONTEXT_CGGI_FFT64_REF)
51}
52
53#[test]
54fn test_bdd_add_fft64_ref() {
55 test_bdd_add(&TEST_CONTEXT_CGGI_FFT64_REF)
56}
57
58#[test]
59fn test_bdd_and_fft64_ref() {
60 test_bdd_and(&TEST_CONTEXT_CGGI_FFT64_REF)
61}
62
63#[test]
64fn test_bdd_or_fft64_ref() {
65 test_bdd_or(&TEST_CONTEXT_CGGI_FFT64_REF)
66}
67
68#[test]
69fn test_bdd_sll_fft64_ref() {
70 test_bdd_sll(&TEST_CONTEXT_CGGI_FFT64_REF)
71}
72
73#[test]
74fn test_bdd_slt_fft64_ref() {
75 test_bdd_slt(&TEST_CONTEXT_CGGI_FFT64_REF)
76}
77
78#[test]
79fn test_bdd_sltu_fft64_ref() {
80 test_bdd_sltu(&TEST_CONTEXT_CGGI_FFT64_REF)
81}
82
83#[test]
84fn test_bdd_sra_fft64_ref() {
85 test_bdd_sra(&TEST_CONTEXT_CGGI_FFT64_REF)
86}
87
88#[test]
89fn test_bdd_srl_fft64_ref() {
90 test_bdd_srl(&TEST_CONTEXT_CGGI_FFT64_REF)
91}
92
93#[test]
94fn test_bdd_sub_fft64_ref() {
95 test_bdd_sub(&TEST_CONTEXT_CGGI_FFT64_REF)
96}
97
98#[test]
99fn test_bdd_xor_fft64_ref() {
100 test_bdd_xor(&TEST_CONTEXT_CGGI_FFT64_REF)
101}