diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-12-06 20:14:58 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-12-06 20:14:58 -0500 |
commit | f1fcd76ba7514003135f3d76ef2308b86b754507 (patch) | |
tree | 4c5a16ec64dc04d65031639d33821c787da44aed /miner.h | |
parent | 1a1a018627d11ac7475f0c27e2cbdb7f248314f2 (diff) |
sha256_cryptopp: Add crypto++ 32-bit assembly implementation
Diffstat (limited to 'miner.h')
-rw-r--r-- | miner.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |