Skip to content

Commit

Permalink
Commit sugestion
Browse files Browse the repository at this point in the history
Co-authored-by: Arthur Paulino <arthurleonardo.ap@gmail.com>
  • Loading branch information
gabriel-barrett and arthurpaulino authored Sep 21, 2023
1 parent 4297ff2 commit d566c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lem/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fn allocate_img_for_slot<F: LurkField, CS: ConstraintSystem<F>>(
let b_num = &preallocated_preimg[1];
let a_is_negative = allocate_is_negative(cs.namespace(|| "a_is_negative"), a_num)?;
let b_is_negative = allocate_is_negative(cs.namespace(|| "b_is_negative"), b_num)?;
// (same_sign * diff_is_neg) || (!same_sign * a_is_neg)
// (same_sign && diff_is_neg) || (!same_sign && a_is_neg)
let same_sign =
Boolean::xor(cs.namespace(|| "same_sign"), &a_is_negative, &b_is_negative)?
.not();
Expand Down

0 comments on commit d566c94

Please sign in to comment.