diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-08-28 11:01:28 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-08-28 11:06:11 +0200 |
commit | ce5381e7fe6702a950a9a81693ca678d87912125 (patch) | |
tree | 22c8905fc51e08b977239b85c7905e52d2ca7297 /src/crypto | |
parent | df91e11ae1e9d7af55a549b597a73d01e3a646c7 (diff) |
build: Rename --enable-experimental-asm to --enable-asm and enable by default
Now that 0.15 is branched off, enable assembler SHA256 optimizations by default.
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/sha256.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/sha256.cpp b/src/crypto/sha256.cpp index 15d6db90c2..29afe86ec7 100644 --- a/src/crypto/sha256.cpp +++ b/src/crypto/sha256.cpp @@ -10,7 +10,7 @@ #include <atomic> #if defined(__x86_64__) || defined(__amd64__) -#if defined(EXPERIMENTAL_ASM) +#if defined(USE_ASM) #include <cpuid.h> namespace sha256_sse4 { @@ -178,7 +178,7 @@ TransformType Transform = sha256::Transform; std::string SHA256AutoDetect() { -#if defined(EXPERIMENTAL_ASM) && (defined(__x86_64__) || defined(__amd64__)) +#if defined(USE_ASM) && (defined(__x86_64__) || defined(__amd64__)) uint32_t eax, ebx, ecx, edx; if (__get_cpuid(1, &eax, &ebx, &ecx, &edx) && (ecx >> 19) & 1) { Transform = sha256_sse4::Transform; |