findnonce.h 552 B

1234567891011121314151617
  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 (0xFFFF)
  8. #define BUFFERSIZE (sizeof(uint32_t) * MAXBUFFERS)
  9. #define FOUND (0x80)
  10. /* #define NFLAG (0x7F) Just for reference */
  11. #ifdef HAVE_OPENCL
  12. extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
  13. extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
  14. #endif /* HAVE_OPENCL */
  15. #endif /*__FINDNONCE_H__*/