Commit bf69a345 by Alan Mishchenko

Debugging 64-bit bug in new semi-canonical form..

parent 794bd2fd
...@@ -128,7 +128,7 @@ printf( "iVar = %d iQ = %d jQ = %d blockSize = %d shiftSize = %d nWords = % ...@@ -128,7 +128,7 @@ printf( "iVar = %d iQ = %d jQ = %d blockSize = %d shiftSize = %d nWords = %
for(i=nWords - 1; i>=0; i--) for(i=nWords - 1; i>=0; i--)
{ {
temp = ((pInOut[i] & SFmask[iVar][iQ])<<(iQ*blockSize)) ^ ((pInOut[i] & SFmask[iVar][jQ])<<(jQ*blockSize)); temp = ((pInOut[i] & SFmask[iVar][iQ])<<(iQ*blockSize)) ^ ((pInOut[i] & SFmask[iVar][jQ])<<(jQ*blockSize));
printf( "i = %d temp = %ld \n", i, temp ); printf( "i = %d temp = %lxu \n", i, temp );
if( temp == 0) if( temp == 0)
continue; continue;
...@@ -137,8 +137,13 @@ printf( "i = %d temp = %ld \n", i, temp ); ...@@ -137,8 +137,13 @@ printf( "i = %d temp = %ld \n", i, temp );
*pDifStart = i*100; *pDifStart = i*100;
while(temp == (temp<<(shiftSize*j))>>shiftSize*j) while(temp == (temp<<(shiftSize*j))>>shiftSize*j)
{ {
printf( "inside temp = %ld shiftSize = %d j = %d\n", temp, shiftSize, j ); printf( "inside shiftSize = %d j = %d temp = %lxu RHS = %lxu exp = %d\n",
shiftSize, j, temp, (temp<<(shiftSize*j))>>shiftSize*j, temp == (temp<<(shiftSize*j))>>shiftSize*j );
j++; j++;
if ( j == 100 )
exit(1);
} }
*pDifStart += 21 - j; *pDifStart += 21 - j;
if( ((pInOut[i] & SFmask[iVar][iQ])<<(iQ*blockSize)) <= ((pInOut[i] & SFmask[iVar][jQ])<<(jQ*blockSize)) ) if( ((pInOut[i] & SFmask[iVar][iQ])<<(iQ*blockSize)) <= ((pInOut[i] & SFmask[iVar][jQ])<<(jQ*blockSize)) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment