Browse Source

remove uint32_t cast

master
KlausT 10 years ago committed by Tanguy Pruvot
parent
commit
ae8e863591
  1. 2
      Algo256/keccak256.cu
  2. 2
      JHA/jackpotcoin.cu
  3. 2
      cuda_nist5.cu
  4. 2
      lyra2/lyra2RE.cu
  5. 2
      quark/animecoin.cu
  6. 2
      quark/quarkcoin.cu
  7. 2
      qubit/deep.cu
  8. 2
      qubit/doom.cu
  9. 2
      qubit/qubit.cu
  10. 2
      x11/fresh.cu
  11. 2
      x11/s3.cu
  12. 2
      x11/x11.cu
  13. 2
      x13/x13.cu
  14. 2
      x15/whirlpool.cu
  15. 2
      x15/x14.cu
  16. 2
      x15/x15.cu
  17. 2
      x17/x17.cu

2
Algo256/keccak256.cu

@ -58,7 +58,7 @@ extern "C" int scanhash_keccak256(int thr_id, uint32_t *pdata,
uint32_t endiandata[20]; uint32_t endiandata[20];
for (int k=0; k < 20; k++) { 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); keccak256_setBlock_80((void*)endiandata, ptarget);

2
JHA/jackpotcoin.cu

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

2
cuda_nist5.cu

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

2
lyra2/lyra2RE.cu

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

2
quark/animecoin.cu

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

2
quark/quarkcoin.cu

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

2
qubit/deep.cu

@ -81,7 +81,7 @@ extern "C" int scanhash_deep(int thr_id, uint32_t *pdata,
} }
for (int k=0; k < 20; k++) 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); qubit_luffa512_cpufinal_setBlock_80((void*)endiandata,ptarget);
cuda_check_cpu_setTarget(ptarget); cuda_check_cpu_setTarget(ptarget);

2
qubit/doom.cu

@ -58,7 +58,7 @@ extern "C" int scanhash_doom(int thr_id, uint32_t *pdata,
} }
for (int k=0; k < 20; k++) 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); qubit_luffa512_cpufinal_setBlock_80((void*)endiandata,ptarget);

2
qubit/qubit.cu

@ -104,7 +104,7 @@ extern "C" int scanhash_qubit(int thr_id, uint32_t *pdata,
} }
for (int k=0; k < 20; k++) 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); qubit_luffa512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget); cuda_check_cpu_setTarget(ptarget);

2
x11/fresh.cu

@ -99,7 +99,7 @@ extern "C" int scanhash_fresh(int thr_id, uint32_t *pdata,
} }
for (int k=0; k < 20; k++) 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); x11_shavite512_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget); cuda_check_cpu_setTarget(ptarget);

2
x11/s3.cu

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

2
x11/x11.cu

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

2
x13/x13.cu

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

2
x15/whirlpool.cu

@ -73,7 +73,7 @@ extern "C" int scanhash_whc(int thr_id, uint32_t *pdata,
} }
for (int k=0; k < 20; k++) { 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); whirlpool512_setBlock_80((void*)endiandata, ptarget);

2
x15/x14.cu

@ -195,7 +195,7 @@ extern "C" int scanhash_x14(int thr_id, uint32_t *pdata,
} }
for (int k = 0; k < 20; k++) 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); quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget); cuda_check_cpu_setTarget(ptarget);

2
x15/x15.cu

@ -206,7 +206,7 @@ extern "C" int scanhash_x15(int thr_id, uint32_t *pdata,
} }
for (int k=0; k < 20; k++) 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); quark_blake512_cpu_setBlock_80((void*)endiandata);
cuda_check_cpu_setTarget(ptarget); cuda_check_cpu_setTarget(ptarget);

2
x17/x17.cu

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

Loading…
Cancel
Save