From 856d55b4d55824db77db4f0a2eefa387999314c3 Mon Sep 17 00:00:00 2001 From: adam west Date: Fri, 25 Oct 2024 14:08:50 +0200 Subject: [PATCH] change types of hcn to int --- components/asic/include/bm1366.h | 4 ++-- components/asic/include/bm1368.h | 4 ++-- components/asic/include/bm1370.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/asic/include/bm1366.h b/components/asic/include/bm1366.h index 7046c9b3..3a1a544f 100644 --- a/components/asic/include/bm1366.h +++ b/components/asic/include/bm1366.h @@ -19,9 +19,9 @@ static const uint64_t BM1366_CORE_COUNT = 112; static const uint64_t BM1366_SMALL_CORE_COUNT = 894; static const float BM1366_NONCE_PERCENT = 111.0/256.0; //maximum nonce space with 1 chip static const float BM1366_MIDSTATE_ENGINES = 8; -static const float BM1366_HCN = 5450.0; +static const int BM1366_HCN = 5450; static const float BM1366_HCN_MAX = 430000.0; -static const float BM1366_HCN_PERCENT = BM1366_HCN/BM1366_HCN_MAX; //hcn limit effect +static const float BM1366_HCN_PERCENT = (float)BM1366_HCN/BM1366_HCN_MAX; //hcn limit effect static const float BM1366_VERSION_PERCENT = 1.0; //version scan percent static const float BM1366_FULLSCAN_PERCENT = 0.5; //normalised value 1 means do the maximum space, 0 dont wait before sending work diff --git a/components/asic/include/bm1368.h b/components/asic/include/bm1368.h index 82396cc9..aa20c03f 100644 --- a/components/asic/include/bm1368.h +++ b/components/asic/include/bm1368.h @@ -19,9 +19,9 @@ static const uint64_t BM1368_CORE_COUNT = 80; static const uint64_t BM1368_SMALL_CORE_COUNT = 1276; static const float BM1368_NONCE_PERCENT = BM1368_CORE_COUNT/256.0; //maximum nonce space with 1 chip static const float BM1368_MIDSTATE_ENGINES = 16.0; -static const float BM1368_HCN = 5540.0; +static const int BM1368_HCN = 5540; static const float BM1368_HCN_MAX = 430000.0; -static const float BM1368_HCN_PERCENT = BM1368_HCN/BM1368_HCN_MAX; //hcn limit effect +static const float BM1368_HCN_PERCENT = (float)BM1368_HCN/BM1368_HCN_MAX; //hcn limit effect static const float BM1368_VERSION_PERCENT = 1.0; //version scan percent static const float BM1368_FULLSCAN_PERCENT = 0.5; //normalised value 1 means do the maximum space, 0 dont wait before sending work diff --git a/components/asic/include/bm1370.h b/components/asic/include/bm1370.h index ccadfcd6..b9f8f385 100644 --- a/components/asic/include/bm1370.h +++ b/components/asic/include/bm1370.h @@ -19,9 +19,9 @@ static const uint64_t BM1370_CORE_COUNT = 128; static const uint64_t BM1370_SMALL_CORE_COUNT = 2040; static const float BM1370_NONCE_PERCENT = BM1370_CORE_COUNT/256.0; //maximum nonce space with 1 chip static const float BM1370_MIDSTATE_ENGINES = 16.0; -static const float BM1370_HCN = 7861.0; +static const int BM1370_HCN = 7861; static const float BM1370_HCN_MAX = 430000.0; -static const float BM1370_HCN_PERCENT = BM1370_HCN/BM1370_HCN_MAX; //hcn limit effect +static const float BM1370_HCN_PERCENT = (float)BM1370_HCN/BM1370_HCN_MAX; //hcn limit effect static const float BM1370_VERSION_PERCENT = 1.0; //version scan percent static const float BM1370_FULLSCAN_PERCENT = 0.5; //normalised value 1 means do the maximum space, 0 dont wait before sending work