Skip to content

Commit 27ffd14

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Use C++17 [[fallthrough]] in faiss/utils/distances_simd.cpp (facebookresearch#2913)
Summary: Pull Request resolved: facebookresearch#2913 Reviewed By: algoriddle Differential Revision: D46603510 fbshipit-source-id: 374d530d79176ac553b40d5ad04bf83d4920b107
1 parent 100beb8 commit 27ffd14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

faiss/utils/distances_simd.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@ static inline __m128 masked_read(int d, const float* x) {
306306
switch (d) {
307307
case 3:
308308
buf[2] = x[2];
309+
[[fallthrough]];
309310
case 2:
310311
buf[1] = x[1];
312+
[[fallthrough]];
311313
case 1:
312314
buf[0] = x[0];
313315
}

0 commit comments

Comments
 (0)