mirror of
https://git.hush.is/hush/hush3.git
synced 2025-12-07 00:03:01 -05:00
Conditional compilation so that Windows, Mac and Linux compile from single (messy) file.
This commit is contained in:
parent
30ceed219d
commit
37bbbc2a43
1
.gitignore
vendored
1
.gitignore
vendored
@ -47,6 +47,7 @@ src/univalue/gen
|
|||||||
|
|
||||||
.deps
|
.deps
|
||||||
.dirstamp
|
.dirstamp
|
||||||
|
.idea
|
||||||
.libs
|
.libs
|
||||||
.*.swp
|
.*.swp
|
||||||
*.*~*
|
*.*~*
|
||||||
|
|||||||
@ -30,7 +30,11 @@ Optimized Implementations for Haraka256 and Haraka512
|
|||||||
|
|
||||||
#define NUMROUNDS 5
|
#define NUMROUNDS 5
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
typedef unsigned long long u64;
|
||||||
|
#else
|
||||||
typedef unsigned long u64;
|
typedef unsigned long u64;
|
||||||
|
#endif
|
||||||
typedef __m128i u128;
|
typedef __m128i u128;
|
||||||
|
|
||||||
extern u128 rc[40];
|
extern u128 rc[40];
|
||||||
|
|||||||
@ -1223,7 +1223,11 @@ void static BitcoinMiner_noeq()
|
|||||||
|
|
||||||
if ((UintToArith256(pblock->nNonce) & mask) == mask)
|
if ((UintToArith256(pblock->nNonce) & mask) == mask)
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
|
printf("%llu mega hashes complete - working\n", (ASSETCHAINS_NONCEMASK[ASSETCHAINS_ALGO] + 1) / 1048576);
|
||||||
|
#else
|
||||||
printf("%lu mega hashes complete - working\n", (ASSETCHAINS_NONCEMASK[ASSETCHAINS_ALGO] + 1) / 1048576);
|
printf("%lu mega hashes complete - working\n", (ASSETCHAINS_NONCEMASK[ASSETCHAINS_ALGO] + 1) / 1048576);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user