aboutsummaryrefslogtreecommitdiff
path: root/miner.h
diff options
context:
space:
mode:
authorMark Crichton <crichton@gmail.com>2011-03-05 22:22:57 -0500
committerMark Crichton <crichton@gmail.com>2011-03-06 23:49:00 -0500
commit96d2287c722e4566fd30271c76869f83831e86c2 (patch)
tree5588fa3e06b3bd12423a30639d1e1e2e09204622 /miner.h
parent1d8b6e13a389c39f672d2bc8a68dfcfce5c04b65 (diff)
X86_64 SSE2 support for Linux
Diffstat (limited to 'miner.h')
-rw-r--r--miner.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/miner.h b/miner.h
index 1c73114..3468501 100644
--- a/miner.h
+++ b/miner.h
@@ -15,6 +15,10 @@
#define WANT_VIA_PADLOCK 1
#endif
+#if defined(__x86_64__) && defined(__SSE2__) && defined(HAS_YASM)
+#define WANT_X8664_SSE2 1
+#endif
+
#if ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
#define WANT_BUILTIN_BSWAP
#else
@@ -74,6 +78,11 @@ extern unsigned int ScanHash_4WaySSE2(const unsigned char *pmidstate,
const unsigned char *ptarget,
uint32_t max_nonce, unsigned long *nHashesDone);
+extern unsigned int scanhash_sse2_amd64(const unsigned char *pmidstate,
+ unsigned char *pdata, unsigned char *phash1, unsigned char *phash,
+ const unsigned char *ptarget,
+ uint32_t max_nonce, unsigned long *nHashesDone);
+
extern bool scanhash_via(unsigned char *data_inout,
const unsigned char *target,
uint32_t max_nonce, unsigned long *hashes_done);