@ -381,57 +381,62 @@ extern json_t *json_rpc_call(CURL *curl, const char *url, const char *userpass,
@@ -381,57 +381,62 @@ extern json_t *json_rpc_call(CURL *curl, const char *url, const char *userpass,
extern char * bin2hex ( const unsigned char * p , size_t len ) ;
extern bool hex2bin ( unsigned char * p , const char * hexstr , size_t len ) ;
extern unsigned int ScanHash_4WaySSE2 ( int , const unsigned char * pmidstate ,
unsigned char * pdata , unsigned char * phash1 , unsigned char * phash ,
const unsigned char * ptarget ,
uint32_t max_nonce , unsigned long * nHashesDone , uint32_t nonce ) ;
extern unsigned int ScanHash_altivec_4way ( int thr_id , const unsigned char * pmidstate ,
typedef bool ( * sha256_func ) ( int thr_id , const unsigned char * pmidstate ,
unsigned char * pdata ,
unsigned char * phash1 , unsigned char * phash ,
const unsigned char * ptarget ,
uint32_t max_nonce , unsigned long * nHashesDone , uint32_t nonce ) ;
uint32_t max_nonce ,
uint32_t * last_nonce ,
uint32_t nonce ) ;
extern unsigned int scanhash_sse2_amd64 ( int , const unsigned char * pmidstate ,
extern bool ScanHash_4WaySSE2 ( int , const unsigned char * pmidstate ,
unsigned char * pdata , unsigned char * phash1 , unsigned char * phash ,
const unsigned char * ptarget ,
uint32_t max_nonce , unsigned long * nHashesDone ) ;
uint32_t max_nonce , uint32_t * last_nonce , uint32_t nonce ) ;
extern bool ScanHash_altivec_4way ( int thr_id , const unsigned char * pmidstate ,
unsigned char * pdata ,
unsigned char * phash1 , unsigned char * phash ,
const unsigned char * ptarget ,
uint32_t max_nonce , uint32_t * last_nonce , uint32_t nonce ) ;
extern bool scanhash_via ( int , unsigned char * data_inout ,
extern bool scanhash_via ( int , const unsigned char * pmidstate ,
unsigned char * pdata ,
unsigned char * phash1 , unsigned char * phash ,
const unsigned char * target ,
uint32_t max_nonce , unsigned long * hashes_done , uint32_t n ) ;
uint32_t max_nonce , uint32_t * last_nonc e , uint32_t n ) ;
extern bool scanhash_c ( 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_don e , uint32_t n ) ;
uint32_t max_nonce , uint32_t * last_nonc e , uint32_t n ) ;
extern bool scanhash_cryptopp ( 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_don e , uint32_t n ) ;
uint32_t max_nonce , uint32_t * last_nonc e , uint32_t n ) ;
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_don e , uint32_t nonce ) ;
uint32_t max_nonce , uint32_t * last_nonc e , uint32_t nonce ) ;
extern int scanhash_sse2_64 ( int , const unsigned char * pmidstate , unsigned char * pdata ,
extern bool scanhash_sse2_64 ( int , const unsigned char * pmidstate , unsigned char * pdata ,
unsigned char * phash1 , unsigned char * phash ,
const unsigned char * ptarget ,
uint32_t max_nonce , unsigned long * nHashesDon e ,
uint32_t max_nonce , uint32_t * last_nonc e ,
uint32_t nonce ) ;
extern int scanhash_sse4_64 ( int , const unsigned char * pmidstate , unsigned char * pdata ,
extern bool scanhash_sse4_64 ( int , const unsigned char * pmidstate , unsigned char * pdata ,
unsigned char * phash1 , unsigned char * phash ,
const unsigned char * ptarget ,
uint32_t max_nonce , unsigned long * nHashesDon e ,
uint32_t max_nonce , uint32_t * last_nonc e ,
uint32_t nonce ) ;
extern int scanhash_sse2_32 ( int , const unsigned char * pmidstate , unsigned char * pdata ,
extern bool scanhash_sse2_32 ( int , const unsigned char * pmidstate , unsigned char * pdata ,
unsigned char * phash1 , unsigned char * phash ,
const unsigned char * ptarget ,
uint32_t max_nonce , unsigned long * nHashesDon e ,
uint32_t max_nonce , uint32_t * last_nonc e ,
uint32_t nonce ) ;
extern int