1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 11:34:16 +00:00

Revert use of any() in output code in poclbm kernel. Slower.

This commit is contained in:
Con Kolivas 2012-02-24 09:34:50 +11:00
parent 837f9ebb76
commit b0a01be319

View File

@ -1256,28 +1256,32 @@ Vals[7]+=ch(Vals[0],Vals[1],Vals[2]);
#define NFLAG (0x7F)
#if defined(VECTORS4)
bool result = any(Vals[7] == 0x136032edU);
Vals[7] ^= 0x136032edU;
if (result) {
bool result = Vals[7].x & Vals[7].y & Vals[7].z & Vals[7].w;
if (!result) {
output[FOUND] = FOUND;
if (Vals[7].x == 0x136032edU)
output[NFLAG & nonce.x] = nonce.x;
if (Vals[7].y == 0x136032edU)
output[NFLAG & nonce.y] = nonce.y;
if (Vals[7].z == 0x136032edU)
output[NFLAG & nonce.z] = nonce.z;
if (Vals[7].w == 0x136032edU)
output[NFLAG & nonce.w] = nonce.w;
if (!Vals[7].x)
output[NFLAG & nonce.x] = nonce.x;
if (!Vals[7].y)
output[NFLAG & nonce.y] = nonce.y;
if (!Vals[7].z)
output[NFLAG & nonce.z] = nonce.z;
if (!Vals[7].w)
output[NFLAG & nonce.w] = nonce.w;
}
#elif defined(VECTORS2)
bool result = any(Vals[7] == 0x136032edU);
#elif defined VECTORS2
Vals[7] ^= 0x136032edU;
if (result) {
bool result = Vals[7].x & Vals[7].y;
if (!result) {
output[FOUND] = FOUND;
if (Vals[7].x == 0x136032edU)
output[NFLAG & nonce.x] = nonce.x;
if (Vals[7].y == 0x136032edU)
output[NFLAG & nonce.y] = nonce.y;
if (!Vals[7].x)
output[FOUND] = output[NFLAG & nonce.x] = nonce.x;
if (!Vals[7].y)
output[FOUND] = output[NFLAG & nonce.y] = nonce.y;
}
#else
if (Vals[7] == 0x136032EDU)