mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-06 22:39:55 +08:00
Avoid C preprocessor macros (#3138)
This commit is contained in:
@@ -871,14 +871,14 @@ template RDKIT_DATASTRUCTS_EXPORT void UpdateBitVectFromBinaryText(ExplicitBitVe
|
||||
#include <intrin.h>
|
||||
#ifdef _WIN64
|
||||
#define BUILTIN_POPCOUNT_INSTR __popcnt64
|
||||
#define BUILTIN_POPCOUNT_TYPE boost::uint64_t
|
||||
using BUILTIN_POPCOUNT_TYPE = boost::uint64_t;
|
||||
#else
|
||||
#define BUILTIN_POPCOUNT_INSTR __popcnt
|
||||
#define BUILTIN_POPCOUNT_TYPE std::uint32_t
|
||||
using BUILTIN_POPCOUNT_TYPE = std::uint32_t;
|
||||
#endif
|
||||
#else
|
||||
#define BUILTIN_POPCOUNT_INSTR __builtin_popcountll
|
||||
#define BUILTIN_POPCOUNT_TYPE boost::uint64_t
|
||||
using BUILTIN_POPCOUNT_TYPE = boost::uint64_t;
|
||||
#endif
|
||||
|
||||
// the Bitmap Tanimoto and Dice similarity code is adapted
|
||||
|
||||
Reference in New Issue
Block a user