Edit

thodg/cgminer/findnonce.h

Branch :

  • Show log

    Commit

  • Author : Con Kolivas
    Date : 2011-08-23 10:28:30
    Hash : 02e126f4
    Message : The worksize was unintentionally changed back to 4k by mistake, this caused a slowdown.

  • findnonce.h
  • #ifndef __FINDNONCE_H__
    #define __FINDNONCE_H__
    #include "miner.h"
    #include "config.h"
    
    #define MAXTHREADS (0xFFFFFFFEULL)
    #define MAXBUFFERS (0xFF)
    #define BUFFERSIZE (sizeof(uint32_t) * MAXBUFFERS)
    #define FOUND (0x80)
    /* #define NFLAG (0x7F) Just for reference */
    
    #ifdef HAVE_OPENCL
    extern void precalc_hash(dev_blk_ctx *blk, uint32_t *state, uint32_t *data);
    extern void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res);
    #endif /* HAVE_OPENCL */
    #endif /*__FINDNONCE_H__*/