From db9d91aca20b92c48cdaf875b28b01d5ad443792 Mon Sep 17 00:00:00 2001 From: Javier Smooth Date: Wed, 19 Aug 2015 01:20:10 -0700 Subject: [PATCH] Fix bug of not using optimized hash on Windows --- src/crypto/slow-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index 6034458..7a1fc33 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -37,7 +37,7 @@ #include "hash-ops.h" #include "oaes_lib.h" -#if defined(__x86_64__) +#if defined(__x86_64__) || (defined(_MSC_VER) && defined(_WIN64)) // Optimised code below, uses x86-specific intrinsics, SSE2, AES-NI // Fall back to more portable code is down at the bottom