Skip to content

Commit

Permalink
feat(integer): implement unsigned_overflowing_scalar_sub
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontaigu committed Aug 22, 2024
1 parent 358bcc9 commit 9160bb2
Show file tree
Hide file tree
Showing 3 changed files with 432 additions and 184 deletions.
3 changes: 1 addition & 2 deletions tfhe/src/integer/server_key/radix_parallel/scalar_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ impl ServerKey {
(high_block + high_scalar_block) % self.message_modulus().0 as u64;
high_block_result <<= 2;

(high_block_result + (low_block_state << 1))
% (self.message_modulus().0 * 4) as u64
(high_block_result + (low_block_state << 1)) % packed_modulus
}));
}

Expand Down
Loading

0 comments on commit 9160bb2

Please sign in to comment.