findnonce.h 489 B

123456789101112131415
  1. #ifndef __FINDNONCE_H__
  2. #define __FINDNONCE_H__
  3. #include "miner.h"
  4. #include "config.h"
  5. #define MAXTHREADS (0xFFFFFFFEULL)
  6. /* Maximum worksize 4k to match page size */
  7. #define MAXBUFFERS (4095)
  8. #define BUFFERSIZE (sizeof(uint32_t) * (MAXBUFFERS + 1))
  9. #ifdef HAVE_OPENCL
  10. extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
  11. extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
  12. #endif /* HAVE_OPENCL */
  13. #endif /*__FINDNONCE_H__*/