findnonce.h 587 B

12345678910111213141516171819
  1. #ifndef __FINDNONCE_H__
  2. #define __FINDNONCE_H__
  3. #include "miner.h"
  4. #include "config.h"
  5. #define MAXTHREADS (0xFFFFFFFEULL)
  6. #define MAXBUFFERS (0x10)
  7. #define BUFFERSIZE (sizeof(uint32_t) * MAXBUFFERS)
  8. #define FOUND (0x0F)
  9. #define SCRYPT_MAXBUFFERS (0x100)
  10. #define SCRYPT_BUFFERSIZE (sizeof(uint32_t) * SCRYPT_MAXBUFFERS)
  11. #define SCRYPT_FOUND (0xFF)
  12. #ifdef HAVE_OPENCL
  13. extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
  14. extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
  15. #endif /* HAVE_OPENCL */
  16. #endif /*__FINDNONCE_H__*/