Skip to content

Commit

Permalink
test: conditionless loop?
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jan 1, 2025
1 parent f1b162f commit f7630df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fuel-vm/src/interpreter/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1164,13 +1164,14 @@ fn slices_equal_avx2(a: &[u8], b: &[u8]) -> bool {
aggregate_mask_a_b &= aggregate_mask_a & aggregate_mask_b;
aggregate_mask_c_d &= aggregate_mask_c & aggregate_mask_d;

if aggregate_mask_a_b & aggregate_mask_c_d != -1i32 {
return false;
}

i += CHUNK;
}

if aggregate_mask_a_b & aggregate_mask_c_d != -1i32 {
return false;
}

a[i..] == b[i..]
}
}
Expand Down

0 comments on commit f7630df

Please sign in to comment.