Skip to content

Commit

Permalink
fix minor regression
Browse files Browse the repository at this point in the history
  • Loading branch information
NaN-git committed Feb 19, 2018
1 parent 6f26b90 commit bc13841
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kernel/ethash-new.cl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ uint2 amd_bitalign(uint2 src0, uint2 src1, uint2 src2)
"v_alignbit_b32 %1, %5, %6, %7"
: "=v" (dst.x), "=v" (dst.y)
: "v" (src0.x), "v" (src1.x), "v" (src2.x),
"v" (src0.y), "v" (src1.y), "v" (src2.y));
"v" (src0.y), "v" (src1.y), "v" (src2.y));
return dst;
}

Expand Down Expand Up @@ -186,8 +186,9 @@ uint2 ROTL64_2(uint2 x, int y) {


#define KECCAK_PROCESS(st, in_size, out_size, isolate) do { \
for (int r = 0; r < (23 + !(isolate)); r++) { \
KECCAKF_1600_RND(st, r, 25); \
for (int r = 0;r < (23);) { \
if (isolate) \
KECCAKF_1600_RND(st, r++, 25); \
} \
KECCAKF_1600_RND(st, 23, out_size); \
} while(0)
Expand Down

0 comments on commit bc13841

Please sign in to comment.