Skip to content

Commit

Permalink
fix faiss arm neon hamming
Browse files Browse the repository at this point in the history
Signed-off-by: yusheng.ma <[email protected]>
  • Loading branch information
Presburger committed Nov 29, 2023
1 parent 0cf256c commit 8ce6537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thirdparty/faiss/faiss/utils/hamming_distance/neon-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ struct HammingComputer64 {
}

inline int compute(const uint8_t* b8) const {
return hc0.hamming(b8) + hc1.hamming(b8 + 32);
return hc0.compute(b8) + hc1.compute(b8 + 32);
}

inline static constexpr int get_code_size() {
Expand Down Expand Up @@ -454,7 +454,7 @@ struct GenHammingComputer32 {
}

inline int compute(const uint8_t* b8) const {
return a0.hamming(b8) + a1.hamming(b8 + 16);
return a0.compute(b8) + a1.compute(b8 + 16);
}

inline static constexpr int get_code_size() {
Expand Down

0 comments on commit 8ce6537

Please sign in to comment.