Skip to content

Commit

Permalink
chore: document truncate (#2082)
Browse files Browse the repository at this point in the history
document trauncate
  • Loading branch information
guipublic authored Jul 28, 2023
1 parent 63c4da0 commit c21e63f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ impl AcirContext {
}

/// Returns an `AcirVar` which will be constrained to be lhs mod 2^{rhs}
/// In order to do this, we simply perform euclidian division of lhs by 2^{rhs}
/// The remainder of the division is then lhs mod 2^{rhs}
pub(crate) fn truncate_var(
&mut self,
lhs: AcirVar,
Expand Down

0 comments on commit c21e63f

Please sign in to comment.