|
|
|
@ -264,128 +264,41 @@ void sha256d(unsigned char *hash, const unsigned char *data, int len);
@@ -264,128 +264,41 @@ void sha256d(unsigned char *hash, const unsigned char *data, int len);
|
|
|
|
|
|
|
|
|
|
struct work; |
|
|
|
|
|
|
|
|
|
extern int scanhash_sha256d(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_deep(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_luffa(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_fugue256(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_groestlcoin(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_heavy(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done, uint32_t maxvote, int blocklen); |
|
|
|
|
|
|
|
|
|
extern int scanhash_keccak256(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_myriad(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_jackpot(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_quark(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_blake256(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done, int8_t blakerounds); |
|
|
|
|
|
|
|
|
|
extern int scanhash_bmw(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_c11(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_fresh(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_lyra2(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_lyra2v2(int thr_id, struct work *work, |
|
|
|
|
uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_neoscrypt(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_nist5(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_pentablake(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_qubit(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_scrypt(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, unsigned char *scratchbuf, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done, struct timeval *tv_start, struct timeval *tv_end); |
|
|
|
|
|
|
|
|
|
extern int scanhash_scrypt_jane(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, unsigned char *scratchbuf, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done, struct timeval *tv_start, struct timeval *tv_end); |
|
|
|
|
|
|
|
|
|
extern int scanhash_skeincoin(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_skein2(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_s3(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_x11(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_x13(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_x14(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_x15(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_x17(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_whirlpoolx(int thr_id, uint32_t *pdata, |
|
|
|
|
const uint32_t *ptarget, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_zr5(int thr_id, struct work *work, uint32_t max_nonce, |
|
|
|
|
unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_blake256(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done, int8_t blakerounds); |
|
|
|
|
extern int scanhash_bmw(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_c11(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_deep(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_keccak256(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_fresh(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_fugue256(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_groestlcoin(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_heavy(int thr_id,struct work *work, uint32_t max_nonce, unsigned long *hashes_done, uint32_t maxvote, int blocklen); |
|
|
|
|
extern int scanhash_jackpot(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_luffa(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_lyra2(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_lyra2v2(int thr_id,struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_myriad(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_neoscrypt(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_nist5(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_pentablake(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_quark(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_qubit(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_skeincoin(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_skein2(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_s3(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_whirlx(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_x11(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_x13(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_x14(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_x15(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_x17(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_zr5(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
|
|
|
|
|
extern int scanhash_sha256d(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done); |
|
|
|
|
extern int scanhash_scrypt(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done, |
|
|
|
|
unsigned char *scratchbuf, struct timeval *tv_start, struct timeval *tv_end); |
|
|
|
|
extern int scanhash_scrypt_jane(int thr_id, struct work *work, uint32_t max_nonce, unsigned long *hashes_done, |
|
|
|
|
unsigned char *scratchbuf, struct timeval *tv_start, struct timeval *tv_end); |
|
|
|
|
|
|
|
|
|
/* api related */ |
|
|
|
|
void *api_thread(void *userdata); |
|
|
|
|