aboutsummaryrefslogtreecommitdiff
path: root/sha256.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-11-23 19:16:36 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-11-23 19:16:36 +0000
commit776d0f34595fd616129d4816a337662ff39de7c6 (patch)
tree3fbcf0ee1967e7ee51745b6e89520ca37185c6ba /sha256.cpp
parente4ff4e6898d378b1a3e83791034a7af455fde3ab (diff)
new getwork
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@189 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'sha256.cpp')
-rw-r--r--sha256.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sha256.cpp b/sha256.cpp
index 56a89260cb..530c2c7c19 100644
--- a/sha256.cpp
+++ b/sha256.cpp
@@ -110,15 +110,15 @@ static const unsigned int pSHA256InitState[8] =
{0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19};
-unsigned int ScanHash_4WaySSE2(char* pmidstate, char* pblock, char* phash1, char* phash, unsigned int& nHashesDone)
+unsigned int ScanHash_4WaySSE2(char* pmidstate, char* pdata, char* phash1, char* phash, unsigned int& nHashesDone)
{
- unsigned int& nNonce = *(unsigned int*)(pblock + 12);
+ unsigned int& nNonce = *(unsigned int*)(pdata + 12);
for (;;)
{
nNonce += NPAR;
unsigned int thashbuf[9][NPAR];
unsigned int (&thash)[9][NPAR] = *alignup<16>(&thashbuf);
- DoubleBlockSHA256(pblock, phash1, pmidstate, thash, pSHA256InitState);
+ DoubleBlockSHA256(pdata, phash1, pmidstate, thash, pSHA256InitState);
for (int j = 0; j < NPAR; j++)
{