From 020cf7d63f0f0e6550573220440a73bb0a273bee Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 23 Jul 2011 16:19:51 +1000 Subject: [PATCH] Build support in for all SSE if possible and only set the default according to machine capabilities. --- main.c | 4 ++-- miner.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index cb8bbcd5..c19e703b 100644 --- a/main.c +++ b/main.c @@ -154,9 +154,9 @@ int opt_vectors; int opt_worksize; int opt_scantime = 60; static const bool opt_time = true; -#ifdef WANT_X8664_SSE4 +#if defined(__SSE4_1__) static enum sha256_algos opt_algo = ALGO_SSE4_64; -#elif WANT_X8664_SSE2 +#elif defined(__SSE2__) static enum sha256_algos opt_algo = ALGO_SSE2_64; #else static enum sha256_algos opt_algo = ALGO_C; diff --git a/miner.h b/miner.h index 2343dbca..37b74394 100644 --- a/miner.h +++ b/miner.h @@ -57,11 +57,11 @@ void *alloca (size_t); #define WANT_VIA_PADLOCK 1 #endif -#if defined(__x86_64__) && defined(__SSE2__) && defined(HAS_YASM) +#if defined(__x86_64__) && defined(HAS_YASM) #define WANT_X8664_SSE2 1 #endif -#if defined(__x86_64__) && defined(__SSE4_1__) && defined(HAS_YASM) +#if defined(__x86_64__) && defined(HAS_YASM) #define WANT_X8664_SSE4 1 #endif