diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-27 00:46:59 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-27 00:46:59 -0500 |
commit | 86eb37d631e704768cc4f9684b79fc00e67b384b (patch) | |
tree | 3b9a8abf23184cf80fe9b5fb634ee60746ebfe7f /sha256_4way.c | |
parent | 500759cea12cc08abf5af2bdb1bab1eff72d8542 (diff) |
Improve and modularize compile-time CPU detection.
Ideally, we should move this to autoconf.
Diffstat (limited to 'sha256_4way.c')
-rw-r--r-- | sha256_4way.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sha256_4way.c b/sha256_4way.c index ae30f76..3fe3114 100644 --- a/sha256_4way.c +++ b/sha256_4way.c @@ -4,14 +4,15 @@ // tcatm's 4-way 128-bit SSE2 SHA-256 -#ifdef __SSE2__ - #include <string.h> #include <assert.h> #include <xmmintrin.h> #include <stdint.h> #include <stdio.h> +#include "miner.h" + +#ifdef WANT_SSE2_4WAY #define NPAR 32 @@ -467,4 +468,4 @@ static void DoubleBlockSHA256(const void* pin, void* pad, const void *pre, unsig } -#endif /* __SSE2__ */ +#endif /* WANT_SSE2_4WAY */ |