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