From c297f63e5e6b7ddee9a30e2e7bc2056d1bad728b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 3 Mar 2012 21:21:05 +1100 Subject: [PATCH] Put additions on separate lines for consistency in poclbm. --- poclbm120222.cl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/poclbm120222.cl b/poclbm120222.cl index 85d7d5eb..f642236a 100644 --- a/poclbm120222.cl +++ b/poclbm120222.cl @@ -85,7 +85,8 @@ __kernel void search(const uint state0, const uint state1, const uint state2, co const u nonce = base + (uint)(get_global_id(0)); -Vals[0]=Preval0+nonce; +Vals[0]=Preval0; +Vals[0]+=nonce; Vals[3]=(rotr(Vals[0],6)^rotr(Vals[0],11)^rotr(Vals[0],25)); Vals[3]+=ch(Vals[0],b1,c1); @@ -93,7 +94,8 @@ Vals[3]+=D1A; Vals[7]=Vals[3]; Vals[7]+=h1; -Vals[4]=PreVal4addT1+nonce; +Vals[4]=PreVal4addT1; +Vals[4]+=nonce; Vals[3]+=(rotr(Vals[4],2)^rotr(Vals[4],13)^rotr(Vals[4],22)); Vals[2]=C1addK5;