2011-06-27 01:31:05 +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)
|
2012-08-23 00:48:15 +00:00
|
|
|
#define MAXBUFFERS (0x10)
|
2011-08-17 06:07:15 +00:00
|
|
|
#define BUFFERSIZE (sizeof(uint32_t) * MAXBUFFERS)
|
2012-08-23 00:48:15 +00:00
|
|
|
#define FOUND (0x0F)
|
2011-06-17 04:00:41 +00:00
|
|
|
|
2013-05-11 06:19:02 +00:00
|
|
|
#define SCRYPT_MAXBUFFERS (0x100)
|
|
|
|
#define SCRYPT_BUFFERSIZE (sizeof(uint32_t) * SCRYPT_MAXBUFFERS)
|
|
|
|
#define SCRYPT_FOUND (0xFF)
|
|
|
|
|
2011-07-05 09:47:03 +00:00
|
|
|
#ifdef HAVE_OPENCL
|
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);
|
2011-07-05 09:47:03 +00:00
|
|
|
#endif /* HAVE_OPENCL */
|
2011-06-27 01:31:05 +00:00
|
|
|
#endif /*__FINDNONCE_H__*/
|