aboutsummaryrefslogtreecommitdiff
path: root/miner.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-12-06 20:14:58 -0500
committerJeff Garzik <jgarzik@redhat.com>2010-12-06 20:14:58 -0500
commitf1fcd76ba7514003135f3d76ef2308b86b754507 (patch)
tree4c5a16ec64dc04d65031639d33821c787da44aed /miner.h
parent1a1a018627d11ac7475f0c27e2cbdb7f248314f2 (diff)
sha256_cryptopp: Add crypto++ 32-bit assembly implementation
Diffstat (limited to 'miner.h')
-rw-r--r--miner.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/miner.h b/miner.h
index 09157fa..b77bf0d 100644
--- a/miner.h
+++ b/miner.h
@@ -14,6 +14,10 @@
#define WANT_VIA_PADLOCK 1
#endif
+#if defined(__i386__)
+#define WANT_CRYPTOPP_ASM32
+#endif
+
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif
@@ -40,6 +44,9 @@ extern bool scanhash_c(const unsigned char *midstate, unsigned char *data,
extern bool scanhash_cryptopp(const unsigned char *midstate,unsigned char *data,
unsigned char *hash1, unsigned char *hash,
unsigned long *hashes_done);
+extern bool scanhash_asm32(const unsigned char *midstate,unsigned char *data,
+ unsigned char *hash1, unsigned char *hash,
+ unsigned long *hashes_done);
extern int
timeval_subtract (struct timeval *result, struct timeval *x, struct timeval *y);