forked from lthn/blockchain
diff switched to more portable ver
This commit is contained in:
parent
ccb304dce9
commit
ef856d01cc
1 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ namespace currency {
|
|||
using std::uint64_t;
|
||||
using std::vector;
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
//#if defined(_MSC_VER)
|
||||
//#include <windows.h>
|
||||
//#include <winnt.h>
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ namespace currency {
|
|||
//low = UnsignedMultiply128(a, b, &high);
|
||||
}
|
||||
|
||||
#else
|
||||
/* #else
|
||||
|
||||
static inline void mul(uint64_t a, uint64_t b, uint64_t &low, uint64_t &high) {
|
||||
typedef unsigned __int128 uint128_t;
|
||||
|
|
@ -45,7 +45,7 @@ namespace currency {
|
|||
high = (uint64_t)(res >> 64);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif */
|
||||
|
||||
static inline bool cadd(uint64_t a, uint64_t b) {
|
||||
return a + b < a;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue