mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Update minisketch subtree to latest upstream
This commit is contained in:
commit
4382d09896
1 changed files with 2 additions and 4 deletions
|
@ -63,9 +63,9 @@ enum class FieldImpl {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef HAVE_CLMUL
|
||||||
static inline bool EnableClmul()
|
static inline bool EnableClmul()
|
||||||
{
|
{
|
||||||
#ifdef HAVE_CLMUL
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
int regs[4];
|
int regs[4];
|
||||||
__cpuid(regs, 1);
|
__cpuid(regs, 1);
|
||||||
|
@ -74,10 +74,8 @@ static inline bool EnableClmul()
|
||||||
uint32_t eax, ebx, ecx, edx;
|
uint32_t eax, ebx, ecx, edx;
|
||||||
return (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (ecx & 0x2));
|
return (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (ecx & 0x2));
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Sketch* Construct(int bits, int impl)
|
Sketch* Construct(int bits, int impl)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue