findnonce.h 648 B

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