Browse Source

More style: change const location

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
35174e2798
  1. 6
      libethash-cl/ethash_cl_miner.cpp
  2. 6
      libethash-cl/ethash_cl_miner.h

6
libethash-cl/ethash_cl_miner.cpp

@ -50,9 +50,9 @@
using namespace std; using namespace std;
const unsigned ethash_cl_miner::c_defaultLocalWorkSize = 64; unsigned const ethash_cl_miner::c_defaultLocalWorkSize = 64;
const unsigned ethash_cl_miner::c_defaultGlobalWorkSizeMultiplier = 4096; // * CL_DEFAULT_LOCAL_WORK_SIZE unsigned const ethash_cl_miner::c_defaultGlobalWorkSizeMultiplier = 4096; // * CL_DEFAULT_LOCAL_WORK_SIZE
const unsigned ethash_cl_miner::c_defaultMSPerBatch = 0; unsigned const ethash_cl_miner::c_defaultMSPerBatch = 0;
// TODO: If at any point we can use libdevcore in here then we should switch to using a LogChannel // TODO: If at any point we can use libdevcore in here then we should switch to using a LogChannel
#define ETHCL_LOG(_contents) cout << "[OPENCL]:" << _contents << endl #define ETHCL_LOG(_contents) cout << "[OPENCL]:" << _contents << endl

6
libethash-cl/ethash_cl_miner.h

@ -67,11 +67,11 @@ public:
/* -- default values -- */ /* -- default values -- */
/// Default value of the local work size. Also known as workgroup size. /// Default value of the local work size. Also known as workgroup size.
static const unsigned c_defaultLocalWorkSize; static unsigned const c_defaultLocalWorkSize;
/// Default value of the global work size as a multiplier of the local work size /// Default value of the global work size as a multiplier of the local work size
static const unsigned c_defaultGlobalWorkSizeMultiplier; static unsigned const c_defaultGlobalWorkSizeMultiplier;
/// Default value of the milliseconds per global work size (per batch) /// Default value of the milliseconds per global work size (per batch)
static const unsigned c_defaultMSPerBatch; static unsigned const c_defaultMSPerBatch;
private: private:

Loading…
Cancel
Save