mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 14:58:01 +00:00
Fix 32 bit builds.
This commit is contained in:
parent
5cbc33e756
commit
9950aa3927
2
miner.h
2
miner.h
@ -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,
|
||||
|
@ -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…
Reference in New Issue
Block a user