Skip to content

Commit

Permalink
XMR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf committed Dec 4, 2016
1 parent 2dea00e commit b0818e7
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 1,193 deletions.
8 changes: 4 additions & 4 deletions kernel/blake256.cl
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ __constant static const sph_u32 c_u256[16] = {
const sph_u32 idx2 = sigma[r][x+1]; \
v[a] += (m[idx1] ^ c_u256[idx2]) + v[b]; \
v[d] ^= v[a]; \
v[d] = SPH_ROTR32(v[d], 16); \
v[d] = rotate(v[d], 16U); \
v[c] += v[d]; \
v[b] ^= v[c]; \
v[b] = SPH_ROTR32(v[b], 12); \
v[b] = rotate(v[b], 20U); \
\
v[a] += (m[idx2] ^ c_u256[idx1]) + v[b]; \
v[d] ^= v[a]; \
v[d] = SPH_ROTR32(v[d], 8); \
v[d] = rotate(v[d], 24U); \
v[c] += v[d]; \
v[b] ^= v[c]; \
v[b] = SPH_ROTR32(v[b], 7); \
v[b] = rotate(v[b], 25U); \
}


Expand Down
Loading

0 comments on commit b0818e7

Please sign in to comment.