mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
The extra shift in the output actually appears detrimental in cgminer and there is a miniscule chance of missing the actual result if it ends up in the same spot as MAXBUFFERS.
This commit is contained in:
parent
e9b8344a37
commit
95f878294f
@ -389,31 +389,31 @@ __kernel void search( const uint state0, const uint state1, const uint state2, c
|
|||||||
Vals[7] += Vals[3] + P4(124) + P3(124) + P2(124) + P1(124) + s1(124) + ch(124);
|
Vals[7] += Vals[3] + P4(124) + P3(124) + P2(124) + P1(124) + s1(124) + ch(124);
|
||||||
|
|
||||||
#define MAXBUFFERS (4095)
|
#define MAXBUFFERS (4095)
|
||||||
#define NFLAG (0xFFFUL)
|
#define NFLAG (0xFFEUL)
|
||||||
|
|
||||||
#if defined(VECTORS4) || defined(VECTORS2)
|
#if defined(VECTORS4) || defined(VECTORS2)
|
||||||
if (Vals[7].x == -H[7])
|
if (Vals[7].x == -H[7])
|
||||||
{
|
{
|
||||||
output[MAXBUFFERS] = output[NFLAG & (W[3].x >> 2)] = W_3.x;
|
output[MAXBUFFERS] = output[NFLAG & W[3].x] = W_3.x;
|
||||||
}
|
}
|
||||||
if (Vals[7].y == -H[7])
|
if (Vals[7].y == -H[7])
|
||||||
{
|
{
|
||||||
output[MAXBUFFERS] = output[NFLAG & (W[3].y >> 2)] = W_3.y;
|
output[MAXBUFFERS] = output[NFLAG & W[3].y] = W_3.y;
|
||||||
}
|
}
|
||||||
#ifdef VECTORS4
|
#ifdef VECTORS4
|
||||||
if (Vals[7].z == -H[7])
|
if (Vals[7].z == -H[7])
|
||||||
{
|
{
|
||||||
output[MAXBUFFERS] = output[NFLAG & (W[3].z >> 2)] = W_3.z;
|
output[MAXBUFFERS] = output[NFLAG & W[3].z] = W_3.z;
|
||||||
}
|
}
|
||||||
if (Vals[7].w == -H[7])
|
if (Vals[7].w == -H[7])
|
||||||
{
|
{
|
||||||
output[MAXBUFFERS] = output[NFLAG & (W[3].w >> 2)] = W_3.w;
|
output[MAXBUFFERS] = output[NFLAG & W[3].w] = W_3.w;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
if (Vals[7] == -H[7])
|
if (Vals[7] == -H[7])
|
||||||
{
|
{
|
||||||
output[MAXBUFFERS] = output[NFLAG & (W[3] >> 2)] = W_3;
|
output[MAXBUFFERS] = output[NFLAG & W[3]] = W_3;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -628,7 +628,7 @@ __kernel void search( const uint state0, const uint state1, const uint state2, c
|
|||||||
Vals[7]+=0x5be0cd19U;
|
Vals[7]+=0x5be0cd19U;
|
||||||
|
|
||||||
#define MAXBUFFERS (4095)
|
#define MAXBUFFERS (4095)
|
||||||
#define NFLAG (0xFFFUL)
|
#define NFLAG (0xFFEUL)
|
||||||
|
|
||||||
#if defined(VECTORS4) || defined(VECTORS2)
|
#if defined(VECTORS4) || defined(VECTORS2)
|
||||||
if (Vals[7].x == 0)
|
if (Vals[7].x == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user