1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-14 08:48:04 +00:00

remove uint32_t cast

This commit is contained in:
KlausT 2015-03-11 16:51:35 +01:00 committed by Tanguy Pruvot
parent 35cc5908ee
commit ae8e863591
17 changed files with 17 additions and 17 deletions

View File

@ -58,7 +58,7 @@ extern "C" int scanhash_keccak256(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++) {
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
}
keccak256_setBlock_80((void*)endiandata, ptarget);

View File

@ -125,7 +125,7 @@ extern "C" int scanhash_jackpot(int thr_id, uint32_t *pdata,
uint32_t endiandata[22];
for (int k=0; k < 22; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
jackpot_keccak512_cpu_setBlock((void*)endiandata, 80);
cuda_check_cpu_setTarget(ptarget);

View File

@ -97,7 +97,7 @@ extern "C" int scanhash_nist5(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -85,7 +85,7 @@ extern "C" int scanhash_lyra2(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
blake256_cpu_setBlock_80(pdata);
groestl256_setTarget(ptarget);

View File

@ -196,7 +196,7 @@ extern "C" int scanhash_anime(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_bmw512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -168,7 +168,7 @@ extern "C" int scanhash_quark(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -81,7 +81,7 @@ extern "C" int scanhash_deep(int thr_id, uint32_t *pdata,
}
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
qubit_luffa512_cpufinal_setBlock_80((void*)endiandata,ptarget);
cuda_check_cpu_setTarget(ptarget);

View File

@ -58,7 +58,7 @@ extern "C" int scanhash_doom(int thr_id, uint32_t *pdata,
}
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
qubit_luffa512_cpufinal_setBlock_80((void*)endiandata,ptarget);

View File

@ -104,7 +104,7 @@ extern "C" int scanhash_qubit(int thr_id, uint32_t *pdata,
}
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
qubit_luffa512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -99,7 +99,7 @@ extern "C" int scanhash_fresh(int thr_id, uint32_t *pdata,
}
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
x11_shavite512_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -85,7 +85,7 @@ extern "C" int scanhash_s3(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
x11_shavite512_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -179,7 +179,7 @@ extern "C" int scanhash_x11(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_blake512_cpu_setBlock_80((void*)endiandata);

View File

@ -186,7 +186,7 @@ extern "C" int scanhash_x13(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -73,7 +73,7 @@ extern "C" int scanhash_whc(int thr_id, uint32_t *pdata,
}
for (int k=0; k < 20; k++) {
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
}
whirlpool512_setBlock_80((void*)endiandata, ptarget);

View File

@ -195,7 +195,7 @@ extern "C" int scanhash_x14(int thr_id, uint32_t *pdata,
}
for (int k = 0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -206,7 +206,7 @@ extern "C" int scanhash_x15(int thr_id, uint32_t *pdata,
}
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);

View File

@ -228,7 +228,7 @@ extern "C" int scanhash_x17(int thr_id, uint32_t *pdata,
uint32_t endiandata[20];
for (int k=0; k < 20; k++)
be32enc(&endiandata[k], ((uint32_t*)pdata)[k]);
be32enc(&endiandata[k], pdata[k]);
quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget);