Skip to content

Commit

Permalink
Merge pull request #1821 from psychocrypt/topic-simplefyMultihashImpl…
Browse files Browse the repository at this point in the history
…ementation_defines

unify cpu cryptonight implementations
  • Loading branch information
fireice-uk authored Sep 14, 2018
2 parents 23375bb + 931bd5f commit b5d3890
Show file tree
Hide file tree
Showing 7 changed files with 373 additions and 1,067 deletions.
2 changes: 1 addition & 1 deletion xmrstak/backend/amd/minethd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void minethd::work_main()

*(uint32_t*)(bWorkBlob + 39) = results[i];

hash_fun(bWorkBlob, oWork.iWorkSize, bResult, cpu_ctx);
hash_fun(bWorkBlob, oWork.iWorkSize, bResult, &cpu_ctx);
if ( (*((uint64_t*)(bResult + 24))) < oWork.iTarget)
executor::inst()->push_event(ex_event(job_result(oWork.sJobID, results[i], bResult, iThreadNo, miner_algo), oWork.iPoolId));
else
Expand Down
2 changes: 1 addition & 1 deletion xmrstak/backend/amd/minethd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class minethd : public iBackend
static bool init_gpus();

private:
typedef void (*cn_hash_fun)(const void*, size_t, void*, cryptonight_ctx*);
typedef void (*cn_hash_fun)(const void*, size_t, void*, cryptonight_ctx**);

minethd(miner_work& pWork, size_t iNo, GpuContext* ctx, const jconf::thd_cfg cfg);

Expand Down
Loading

0 comments on commit b5d3890

Please sign in to comment.