findnonce.h 609 B

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