Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
x16s warning fix + readme + vcxproj
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Mar 29, 2018
1 parent 574aefb commit 971469b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Version 1.3.3
- Add tribus algo
- Add x16r algo
- Add x16s algo
- Add keccakc variant

Version 1.3.2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Algorithms
*__x14__ (X14, Webcoin [WEB])
*__x15__ (RadianceCoin [RCE])
*__x16r__ (Ravencoin [RVN])
*__x16s__ (Pigeoncoin [PGN])
*__x17__ (Verge [XVG])
*__yescrypt__ (GlobalBoostY [BSTY], Unitus [UIS], MyriadCoin [MYR])
*__zr5__ (Ziftrcoin [ZRC])
Expand Down
4 changes: 2 additions & 2 deletions algo/x16s.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static __thread uint32_t s_ntime = UINT32_MAX;
static __thread char hashOrder[HASH_FUNC_COUNT + 1] = { 0 };


static void getAlgoString(const uint32_t* prevblock, char *output)
static void getAlgoString(const uint8_t* prevblock, char *output)
{
uint8_t* data = (uint8_t*)prevblock;

Expand Down Expand Up @@ -207,7 +207,7 @@ int scanhash_x16s(int thr_id, struct work *work, uint32_t max_nonce, uint64_t *h

if (s_ntime != pdata[17]) {
uint32_t ntime = swab32(pdata[17]);
getAlgoString((const char*) (&endiandata[1]), hashOrder);
getAlgoString((const uint8_t*) (&endiandata[1]), hashOrder);
s_ntime = ntime;
if (opt_debug && !thr_id) applog(LOG_DEBUG, "hash order %s (%08x)", hashOrder, ntime);
}
Expand Down
1 change: 1 addition & 0 deletions cpuminer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
<ClCompile Include="algo\x14.c" />
<ClCompile Include="algo\x15.c" />
<ClCompile Include="algo\x16r.c" />
<ClCompile Include="algo\x16s.c" />
<ClCompile Include="algo\x17.c" />
<ClCompile Include="algo\xevan.c" />
<ClCompile Include="algo\yescrypt.c" />
Expand Down
3 changes: 3 additions & 0 deletions cpuminer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@
<ClCompile Include="algo\x16r.c">
<Filter>algo</Filter>
</ClCompile>
<ClCompile Include="algo\x16s.c">
<Filter>algo</Filter>
</ClCompile>
<ClCompile Include="algo\x17.c">
<Filter>algo</Filter>
</ClCompile>
Expand Down

0 comments on commit 971469b

Please sign in to comment.