Skip to content

Commit

Permalink
return in-lieu-of break
Browse files Browse the repository at this point in the history
Allowing for correct exit once SWAR is enabled
  • Loading branch information
AaronO committed Apr 24, 2023
1 parent 3ca643f commit e65f751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/simd/neon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn match_header_name_vectored(bytes: &mut Bytes) {
bytes.advance(advance);

if advance != 16 {
break;
return;
}
}
}
Expand All @@ -26,7 +26,7 @@ pub fn match_header_value_vectored(bytes: &mut Bytes) {
bytes.advance(advance);

if advance != 16 {
break;
return;
}
}
}
Expand All @@ -41,7 +41,7 @@ pub fn match_uri_vectored(bytes: &mut Bytes) {
bytes.advance(advance);

if advance != 16 {
break;
return;
}
}
}
Expand Down

0 comments on commit e65f751

Please sign in to comment.