findnonce.h 505 B

12345678910111213141516
  1. #ifndef __FINDNONCE_H__
  2. #define __FINDNONCE_H__
  3. #include "miner.h"
  4. #include "config.h"
  5. #define MAXTHREADS (0xFFFFFFFEULL)
  6. #define MAXBUFFERS (0xFF)
  7. #define BUFFERSIZE (sizeof(uint32_t) * MAXBUFFERS)
  8. #define FOUND (0x80)
  9. /* #define NFLAG (0x7F) Just for reference */
  10. #ifdef HAVE_OPENCL
  11. extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
  12. extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
  13. #endif /* HAVE_OPENCL */
  14. #endif /*__FINDNONCE_H__*/