Skip to content

Commit

Permalink
Use C++17 [[fallthrough]] in faiss/utils/hamming_distance/avx2-inl.h
Browse files Browse the repository at this point in the history
Reviewed By: mdouze

Differential Revision: D46603512

fbshipit-source-id: fa4bab4d24f5c9e2a3506f2a67d3a7db2a01512f
  • Loading branch information
r-barnes authored and facebook-github-bot committed Jun 12, 2023
1 parent 463ffd8 commit 100beb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions faiss/utils/hamming_distance/avx2-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ struct HammingComputerDefault {
len -= 8;
accu += popcount64(a64[i] ^ b64[i]);
i++;
[[fallthrough]];
case 7:
accu += popcount64(a64[i] ^ b64[i]);
i++;
Expand Down

0 comments on commit 100beb8

Please sign in to comment.