Skip to content

Commit

Permalink
Use C++17 [[fallthrough]] in faiss/utils/distances_simd.cpp (facebook…
Browse files Browse the repository at this point in the history
…research#2913)

Summary: Pull Request resolved: facebookresearch#2913

Reviewed By: algoriddle

Differential Revision: D46603510

fbshipit-source-id: 374d530d79176ac553b40d5ad04bf83d4920b107
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jun 12, 2023
1 parent 100beb8 commit 27ffd14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faiss/utils/distances_simd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,10 @@ static inline __m128 masked_read(int d, const float* x) {
switch (d) {
case 3:
buf[2] = x[2];
[[fallthrough]];
case 2:
buf[1] = x[1];
[[fallthrough]];
case 1:
buf[0] = x[0];
}
Expand Down

0 comments on commit 27ffd14

Please sign in to comment.