mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-12 17:52:48 -05:00
Fixed hashrate and diff display for KawPow
This commit is contained in:
@@ -114,6 +114,16 @@ static inline uint32_t clz(uint32_t a)
|
||||
}
|
||||
|
||||
|
||||
uint64_t KPCache::cache_size(uint32_t epoch)
|
||||
{
|
||||
if (epoch >= sizeof(cache_sizes) / sizeof(cache_sizes[0])) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return cache_sizes[epoch];
|
||||
}
|
||||
|
||||
|
||||
uint64_t KPCache::dag_size(uint32_t epoch)
|
||||
{
|
||||
if (epoch >= sizeof(dag_sizes) / sizeof(dag_sizes[0])) {
|
||||
|
||||
@@ -59,6 +59,7 @@ public:
|
||||
|
||||
const uint32_t* l1_cache() const { return m_l1Cache; }
|
||||
|
||||
static uint64_t cache_size(uint32_t epoch);
|
||||
static uint64_t dag_size(uint32_t epoch);
|
||||
|
||||
static void calculate_fast_mod_data(uint32_t divisor, uint32_t &reciprocal, uint32_t &increment, uint32_t& shift);
|
||||
|
||||
Reference in New Issue
Block a user