2014-04-03 19:12:35 +03:00
|
|
|
#ifndef FINDNONCE_H
|
|
|
|
#define FINDNONCE_H
|
|
|
|
|
2011-06-14 10:32:54 +10:00
|
|
|
#include "miner.h"
|
2011-07-05 19:47:03 +10:00
|
|
|
#include "config.h"
|
2011-06-14 10:32:54 +10:00
|
|
|
|
2011-06-29 11:19:43 +10:00
|
|
|
#define MAXTHREADS (0xFFFFFFFEULL)
|
2013-11-24 16:10:29 +02:00
|
|
|
#define MAXBUFFERS (0x100)
|
|
|
|
#define BUFFERSIZE (sizeof(uint32_t) * MAXBUFFERS)
|
2013-05-11 16:19:02 +10:00
|
|
|
|
2011-06-14 10:32:54 +10:00
|
|
|
extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
|
2011-06-29 23:38:16 +10:00
|
|
|
extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
|
2014-04-03 19:12:35 +03:00
|
|
|
|
|
|
|
#endif /*FINDNONCE_H*/
|