arnaucube
arnaucube/phantom-zonePublic Self-hosted repository
phantom-zone/src/shortint.rs
src/shortint.rsRaw
 1use itertools::izip;
 2
 3use crate::Matrix;
 4
 5struct FheUint8<M: Matrix> {
 6    data: M,
 7}
 8
 9fn add<M: Matrix>(a: FheUint8<M>, b: FheUint8<M>) {
10    // CALL THE EVALUATOR
11    izip!(a.data.iter_rows(), b.data.iter_rows()).for_each(|(a_bit, b_bit)| {
12        // A ^ B
13    });
14}