Skip to content

Commit d7acca9

Browse files
- early exit when possible
1 parent 94fd76a commit d7acca9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/examples/parallel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void verify(float* foo, uint32_t array_size) {
4949
for (size_t i = 1; i < array_size; ++i) {
5050
if ((foo[i] - foo[i - 1]) != 1) {
5151
goodflag = goodflag & false;
52+
break;
5253
}
5354
}
5455
if (goodflag) {

0 commit comments

Comments
 (0)