diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-27 04:31:32 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-27 04:31:32 -0500 |
commit | 339ddf4d757e17687d18d59e8ded57a71f186121 (patch) | |
tree | 8bdcd2f8bfee2b5ffdd8ee5c5cb2cd7fa93967b8 /miner.h | |
parent | ad3fda8aba5f3f1f4820a20a925c6387347876f9 (diff) |
Move sha256_generic into its own .o build output. Const-ify midstate param.
Diffstat (limited to 'miner.h')
-rw-r--r-- | miner.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -26,13 +26,18 @@ extern json_t *json_rpc_call(const char *url, const char *userpass, extern char *bin2hex(unsigned char *p, size_t len); extern bool hex2bin(unsigned char *p, const char *hexstr, size_t len); -extern unsigned int ScanHash_4WaySSE2(unsigned char *pmidstate, +extern unsigned int ScanHash_4WaySSE2(const unsigned char *pmidstate, unsigned char *pdata, unsigned char *phash1, unsigned char *phash, unsigned long *nHashesDone); -extern bool scanhash_via(unsigned char *midstate, const unsigned char *data_in, +extern bool scanhash_via(const unsigned char *midstate, const unsigned char *data_in, unsigned char *hash1, unsigned char *hash, unsigned long *hashes_done); + +extern bool scanhash_c(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); |