mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-05-28 12:49:54 +00:00
fmt
This commit is contained in:
parent
ad1aa4ae10
commit
f67e12ee64
@ -364,11 +364,7 @@ impl<F: RichField> SimpleGenerator<F> for EqualityGenerator {
|
|||||||
let x = witness.get_target(self.x);
|
let x = witness.get_target(self.x);
|
||||||
let y = witness.get_target(self.y);
|
let y = witness.get_target(self.y);
|
||||||
|
|
||||||
let inv = if x != y {
|
let inv = if x != y { (x - y).inverse() } else { F::ZERO };
|
||||||
(x - y).inverse()
|
|
||||||
} else {
|
|
||||||
F::ZERO
|
|
||||||
};
|
|
||||||
|
|
||||||
out_buffer.set_bool_target(self.equal, x == y);
|
out_buffer.set_bool_target(self.equal, x == y);
|
||||||
out_buffer.set_target(self.inv, inv);
|
out_buffer.set_target(self.inv, inv);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user