From 6b19b15aa97d8bfba7c5feb52d857a1b51b1e6d4 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 7 Mar 2011 00:23:12 -0500 Subject: [PATCH] Fix warnings in sse2_64 implementation. --- miner.h | 4 ++++ sha256_sse2_amd64.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/miner.h b/miner.h index 3468501..68adf47 100644 --- a/miner.h +++ b/miner.h @@ -99,6 +99,10 @@ extern bool scanhash_asm32(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); +extern int scanhash_sse2_64(const unsigned char *pmidstate, unsigned char *pdata, + unsigned char *phash1, unsigned char *phash, + const unsigned char *ptarget, + uint32_t max_nonce, unsigned long *nHashesDone); extern int timeval_subtract (struct timeval *result, struct timeval *x, struct timeval *y); diff --git a/sha256_sse2_amd64.c b/sha256_sse2_amd64.c index 87c6993..df0be12 100644 --- a/sha256_sse2_amd64.c +++ b/sha256_sse2_amd64.c @@ -57,7 +57,6 @@ int scanhash_sse2_64(const unsigned char *pmidstate, unsigned char *pdata, uint32_t m_midstate[8], m_w[16], m_w1[16]; __m128i m_4w[64], m_4hash[64], m_4hash1[64]; __m128i offset; - __m128i g_4sha256_hinit[8]; int i; /* For debugging */