Skip to content

Commit

Permalink
Update src/fns/constrained_ops.nr
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jan 29, 2025
1 parent d074827 commit b1766f3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/fns/constrained_ops.nr
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,7 @@ pub(crate) fn eq<let N: u32, let MOD_BITS: u32>(
}

pub(crate) fn is_zero<let N: u32, let MOD_BITS: u32>(val: [Field; N]) -> bool {
let mut result: bool = true;

for i in 0..N {
result = result & (val[i] == 0);
}

result
val.all(|limb| limb == 0)
}

pub(crate) fn validate_in_field<let N: u32, let MOD_BITS: u32>(
Expand Down

0 comments on commit b1766f3

Please sign in to comment.