From 16201a68c71bc63e28cdd72623a05b5c656cbc65 Mon Sep 17 00:00:00 2001 From: David Dawes Date: Sat, 16 Jun 2018 16:23:42 -0700 Subject: [PATCH 1/2] Undo inadvertent delete --- src/crypto/verus_hash.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crypto/verus_hash.h b/src/crypto/verus_hash.h index 9b2c79b86..d58827519 100644 --- a/src/crypto/verus_hash.h +++ b/src/crypto/verus_hash.h @@ -94,6 +94,7 @@ extern void verus_hash(void *result, const void *data, size_t len); inline bool IsCPUVerusOptimized() { unsigned int eax,ebx,ecx,edx; + if (!__get_cpuid(1,&eax,&ebx,&ecx,&edx)) { return false; From 4b054f2494d4f374f31ba7abca8a81b55b8642ff Mon Sep 17 00:00:00 2001 From: David Dawes Date: Sat, 16 Jun 2018 16:24:20 -0700 Subject: [PATCH 2/2] Undo the changes --- src/crypto/verus_hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/verus_hash.h b/src/crypto/verus_hash.h index d58827519..85f3c4830 100644 --- a/src/crypto/verus_hash.h +++ b/src/crypto/verus_hash.h @@ -94,7 +94,7 @@ extern void verus_hash(void *result, const void *data, size_t len); inline bool IsCPUVerusOptimized() { unsigned int eax,ebx,ecx,edx; - + if (!__get_cpuid(1,&eax,&ebx,&ecx,&edx)) { return false;