findnonce.h 450 B

123456789101112
  1. #ifndef __FINDNONCE_H__
  2. #define __FINDNONCE_H__
  3. #include "miner.h"
  4. #define MAXTHREADS (0xFFFFFFFEULL)
  5. /* Maximum worksize 512 * maximum vectors 4 plus one flag entry */
  6. #define MAXBUFFERS (4 * 512)
  7. #define BUFFERSIZE (sizeof(uint32_t) * (MAXBUFFERS + 1))
  8. extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
  9. extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
  10. #endif /*__FINDNONCE_H__*/