mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-08 22:08:02 +00:00
misc: fix spaces after closing parenthesis.
sed -i 's/) $/)/' *.cl
This commit is contained in:
parent
e18bcc2582
commit
11cf733ede
@ -797,7 +797,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
#pragma unroll
|
||||
for(uint z=0; z<zSIZE; ++z, ++CO_reg)
|
||||
lookup[CO_reg] = X[z];
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
salsa(X);
|
||||
}
|
||||
|
||||
@ -815,7 +815,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
}
|
||||
#endif
|
||||
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
{
|
||||
uint4 V[8];
|
||||
uint j = X[7].x & (N[NFACTOR]-1);
|
||||
@ -831,7 +831,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
salsa(V);
|
||||
#else
|
||||
uint val = j%LOOKUP_GAP;
|
||||
for (uint z=0; z<val; ++z)
|
||||
for (uint z=0; z<val; ++z)
|
||||
salsa(V);
|
||||
#endif
|
||||
|
||||
@ -866,7 +866,7 @@ const uint4 midstate0, const uint4 midstate16, const uint target)
|
||||
SHA256(&tstate0, &tstate1, input[0],input[1],input[2],input[3]);
|
||||
|
||||
#pragma unroll
|
||||
for (uint i=0; i<4; i++)
|
||||
for (uint i=0; i<4; i++)
|
||||
{
|
||||
pad0 = tstate0;
|
||||
pad1 = tstate1;
|
||||
|
@ -797,7 +797,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
#pragma unroll
|
||||
for(uint z=0; z<zSIZE; ++z,++CO)
|
||||
lookup[CO] = X[z];
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
salsa(X);
|
||||
}
|
||||
|
||||
@ -812,7 +812,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
salsa(X);
|
||||
}
|
||||
#endif
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
{
|
||||
uint4 V[8];
|
||||
uint j = X[7].x & (N[NFACTOR]-1);
|
||||
@ -828,7 +828,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
salsa(V);
|
||||
#else
|
||||
uint val = j%LOOKUP_GAP;
|
||||
for (uint z=0; z<val; ++z)
|
||||
for (uint z=0; z<val; ++z)
|
||||
salsa(V);
|
||||
#endif
|
||||
|
||||
@ -863,7 +863,7 @@ const uint4 midstate0, const uint4 midstate16, const uint target)
|
||||
SHA256(&tstate0, &tstate1, input[0],input[1],input[2],input[3]);
|
||||
|
||||
#pragma unroll
|
||||
for (uint i=0; i<4; i++)
|
||||
for (uint i=0; i<4; i++)
|
||||
{
|
||||
pad0 = tstate0;
|
||||
pad1 = tstate1;
|
||||
|
@ -798,7 +798,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
#pragma unroll
|
||||
for(uint z=0; z<zSIZE; ++z)
|
||||
lookup[CO] = X[z];
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
salsa(X);
|
||||
}
|
||||
#if (LOOKUP_GAP != 1) && (LOOKUP_GAP != 2) && (LOOKUP_GAP != 4) && (LOOKUP_GAP != 8)
|
||||
@ -811,7 +811,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
salsa(X);
|
||||
}
|
||||
#endif
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
{
|
||||
uint4 V[8];
|
||||
uint j = X[7].x & (N[NFACTOR]-1);
|
||||
@ -826,7 +826,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
salsa(V);
|
||||
#else
|
||||
uint val = j%LOOKUP_GAP;
|
||||
for (uint z=0; z<val; ++z)
|
||||
for (uint z=0; z<val; ++z)
|
||||
salsa(V);
|
||||
#endif
|
||||
|
||||
@ -861,7 +861,7 @@ const uint4 midstate0, const uint4 midstate16, const uint target)
|
||||
SHA256(&tstate0, &tstate1, input[0],input[1],input[2],input[3]);
|
||||
|
||||
#pragma unroll
|
||||
for (uint i=0; i<4; i++)
|
||||
for (uint i=0; i<4; i++)
|
||||
{
|
||||
pad0 = tstate0;
|
||||
pad1 = tstate1;
|
||||
|
@ -737,7 +737,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
#pragma unroll
|
||||
for(uint z=0; z<zSIZE; ++z)
|
||||
lookup[CO] = X[z];
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
salsa(X);
|
||||
}
|
||||
#if (LOOKUP_GAP != 1) && (LOOKUP_GAP != 2) && (LOOKUP_GAP != 4) && (LOOKUP_GAP != 8)
|
||||
@ -750,7 +750,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
salsa(X);
|
||||
}
|
||||
#endif
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
{
|
||||
uint4 V[8];
|
||||
uint j = X[7].x & (N[NFACTOR]-1);
|
||||
@ -765,7 +765,7 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
salsa(V);
|
||||
#else
|
||||
uint val = j%LOOKUP_GAP;
|
||||
for (uint z=0; z<val; ++z)
|
||||
for (uint z=0; z<val; ++z)
|
||||
salsa(V);
|
||||
#endif
|
||||
|
||||
@ -800,7 +800,7 @@ const uint4 midstate0, const uint4 midstate16, const uint target)
|
||||
SHA256(&tstate0, &tstate1, input[0],input[1],input[2],input[3]);
|
||||
|
||||
#pragma unroll
|
||||
for (uint i=0; i<4; i++)
|
||||
for (uint i=0; i<4; i++)
|
||||
{
|
||||
pad0 = tstate0;
|
||||
pad1 = tstate1;
|
||||
|
@ -798,10 +798,10 @@ void scrypt_core(uint4 X[8], __global uint4*restrict lookup)
|
||||
|
||||
for(uint z=0; z<zSIZE; ++z)
|
||||
lookup[CO] = X[z];
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
for(uint i=0; i<LOOKUP_GAP; ++i)
|
||||
salsa(X);
|
||||
}
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
for (uint i=0; i<N[NFACTOR]; ++i)
|
||||
{
|
||||
uint j = X[7].x & (N[NFACTOR]-1);
|
||||
uint y = (j/LOOKUP_GAP);
|
||||
@ -849,7 +849,7 @@ const uint4 midstate0, const uint4 midstate16, const uint target)
|
||||
SHA256(&tstate0, &tstate1, input[0],input[1],input[2],input[3]);
|
||||
|
||||
|
||||
for (uint i=0; i<4; i++)
|
||||
for (uint i=0; i<4; i++)
|
||||
{
|
||||
pad0 = tstate0;
|
||||
pad1 = tstate1;
|
||||
|
Loading…
Reference in New Issue
Block a user