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:
Lucas Hosseini
2020-08-25 16:58:24 -07:00
committed by Facebook GitHub Bot
parent 95216f91f4
commit 86ac808fd3
+5
View File
@@ -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>