mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-11 22:50:00 +00:00
Add __builtin_popcountl polyfill. (#1367)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1367 Test Plan: Imported from OSS Reviewed By: mdouze Differential Revision: D23314742 Pulled By: beauby fbshipit-source-id: f15ae3a06d5cc55d4578443bc56f1af520bbc715
This commit is contained in:
committed by
Facebook GitHub Bot
parent
95216f91f4
commit
86ac808fd3
@@ -27,6 +27,11 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
#define __builtin_popcountl __popcnt64
|
||||
#endif // _MSC_VER
|
||||
|
||||
#include <faiss/utils/Heap.h>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user