mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
Build support in for all SSE if possible and only set the default according to machine capabilities.
This commit is contained in:
parent
039a5ea7cd
commit
020cf7d63f
4
main.c
4
main.c
@ -154,9 +154,9 @@ int opt_vectors;
|
|||||||
int opt_worksize;
|
int opt_worksize;
|
||||||
int opt_scantime = 60;
|
int opt_scantime = 60;
|
||||||
static const bool opt_time = true;
|
static const bool opt_time = true;
|
||||||
#ifdef WANT_X8664_SSE4
|
#if defined(__SSE4_1__)
|
||||||
static enum sha256_algos opt_algo = ALGO_SSE4_64;
|
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;
|
static enum sha256_algos opt_algo = ALGO_SSE2_64;
|
||||||
#else
|
#else
|
||||||
static enum sha256_algos opt_algo = ALGO_C;
|
static enum sha256_algos opt_algo = ALGO_C;
|
||||||
|
4
miner.h
4
miner.h
@ -57,11 +57,11 @@ void *alloca (size_t);
|
|||||||
#define WANT_VIA_PADLOCK 1
|
#define WANT_VIA_PADLOCK 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__x86_64__) && defined(__SSE2__) && defined(HAS_YASM)
|
#if defined(__x86_64__) && defined(HAS_YASM)
|
||||||
#define WANT_X8664_SSE2 1
|
#define WANT_X8664_SSE2 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__x86_64__) && defined(__SSE4_1__) && defined(HAS_YASM)
|
#if defined(__x86_64__) && defined(HAS_YASM)
|
||||||
#define WANT_X8664_SSE4 1
|
#define WANT_X8664_SSE4 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user