Skip to content

Commit

Permalink
feat(integer): Adds bitslice operation
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarlin-zama committed Aug 6, 2024
1 parent f937524 commit f73d6c6
Show file tree
Hide file tree
Showing 8 changed files with 1,402 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tfhe/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,12 @@ impl From<std::convert::Infallible> for Error {
unreachable!()
}
}

/// Error returned when the provided range for a slice is invalid
#[derive(Debug)]
pub enum InvalidRangeError {
/// The upper bound of the range is greater than the size of the integer
SliceTooBig,
/// The upper gound is smaller than the lower bound
WrongOrder,
}
1 change: 1 addition & 0 deletions tfhe/src/integer/server_key/radix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mod scalar_add;
pub(super) mod scalar_mul;
pub(super) mod scalar_sub;
mod shift;
pub(super) mod slice;
mod sub;

use super::ServerKey;
Expand Down
Loading

0 comments on commit f73d6c6

Please sign in to comment.