diff options
author | fanquake <fanquake@gmail.com> | 2022-02-04 22:47:49 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-02-04 22:47:49 +0800 |
commit | 4382d098964c4eee09505d74eac9e2d05b2945ce (patch) | |
tree | c7d36991f441a765db6f301c81d3b6ebc75838f1 | |
parent | a5edd191be93aff8f9c0f60f04e711e2e78ecc77 (diff) | |
parent | 8fcb19fb47ae4629f40cd7ef04b5993855ddb462 (diff) | |
download | bitcoin-4382d098964c4eee09505d74eac9e2d05b2945ce.tar.xz |
Update minisketch subtree to latest upstream
-rw-r--r-- | src/minisketch/src/minisketch.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/minisketch/src/minisketch.cpp b/src/minisketch/src/minisketch.cpp index e9a322f139..d003fdf755 100644 --- a/src/minisketch/src/minisketch.cpp +++ b/src/minisketch/src/minisketch.cpp @@ -63,9 +63,9 @@ enum class FieldImpl { #endif }; +#ifdef HAVE_CLMUL static inline bool EnableClmul() { -#ifdef HAVE_CLMUL #ifdef _MSC_VER int regs[4]; __cpuid(regs, 1); @@ -74,10 +74,8 @@ static inline bool EnableClmul() uint32_t eax, ebx, ecx, edx; return (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (ecx & 0x2)); #endif -#else - return false; -#endif } +#endif Sketch* Construct(int bits, int impl) { |