Browse Source

Fix 32 bit builds.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
9950aa3927
  1. 2
      miner.h
  2. 4
      sha256_cryptopp.c

2
miner.h

@ -182,7 +182,7 @@ extern bool scanhash_cryptopp(int, const unsigned char *midstate,unsigned char * @@ -182,7 +182,7 @@ extern bool scanhash_cryptopp(int, const unsigned char *midstate,unsigned char *
extern bool scanhash_asm32(int, const unsigned char *midstate,unsigned char *data,
unsigned char *hash1, unsigned char *hash,
const unsigned char *target,
uint32_t max_nonce, unsigned long *hashes_done);
uint32_t max_nonce, unsigned long *hashes_done, uint32_t nonce);
extern int scanhash_sse2_64(int, const unsigned char *pmidstate, unsigned char *pdata,
unsigned char *phash1, unsigned char *phash,
const unsigned char *ptarget,

4
sha256_cryptopp.c

@ -582,11 +582,11 @@ bool scanhash_asm32(int thr_id, const unsigned char *midstate, @@ -582,11 +582,11 @@ bool scanhash_asm32(int thr_id, const unsigned char *midstate,
unsigned char *data,
unsigned char *hash1, unsigned char *hash,
const unsigned char *target,
uint32_t max_nonce, unsigned long *hashes_done)
uint32_t max_nonce, unsigned long *hashes_done,
uint32_t n)
{
uint32_t *hash32 = (uint32_t *) hash;
uint32_t *nonce = (uint32_t *)(data + 12);
uint32_t n = 0;
unsigned long stat_ctr = 0;
work_restart[thr_id].restart = 0;

Loading…
Cancel
Save