Improve code comments based on review feedback

Co-authored-by: RubenCGomes <116815718+RubenCGomes@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-02 23:22:21 +00:00
parent e57678f067
commit 7684c75469
2 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
.

View File

@ -36,7 +36,7 @@ static int is_valid_coin(u32_t *hash)
//
static int increment_coin(u32_t coin[14])
{
// Update the variable part (simple counter-based approach)
// Increment the variable part using byte-by-byte logic with carry
// Increment from the end to beginning (positions 53 down to 12)
int pos = 53;
while(pos >= 12)
@ -147,7 +147,7 @@ static void mine_coins_avx(u64_t max_attempts)
((u08_t *)base_coin)[0x36 ^ 3] = '\n';
((u08_t *)base_coin)[0x37 ^ 3] = 0x80;
// Initialize variable part with the same pattern as CPU miner
// Initialize variable part with A-Z cycling pattern (same as CPU miner)
for(int i = 12; i < 54; i++)
((u08_t *)base_coin)[i ^ 3] = 'A' + (i - 12) % 26;
@ -239,7 +239,7 @@ static void mine_coins_avx2(u64_t max_attempts)
((u08_t *)base_coin)[0x36 ^ 3] = '\n';
((u08_t *)base_coin)[0x37 ^ 3] = 0x80;
// Initialize variable part with the same pattern as CPU miner
// Initialize variable part with A-Z cycling pattern (same as CPU miner)
for(int i = 12; i < 54; i++)
((u08_t *)base_coin)[i ^ 3] = 'A' + (i - 12) % 26;