Skip to content

Commit

Permalink
change types of hcn to int
Browse files Browse the repository at this point in the history
  • Loading branch information
adammwest committed Oct 25, 2024
1 parent e286d81 commit 856d55b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/asic/include/bm1366.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions components/asic/include/bm1368.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions components/asic/include/bm1370.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 856d55b

Please sign in to comment.