1
0
Fork 0
forked from lthn/blockchain

diff switched to more portable ver

This commit is contained in:
cryptozoidberg 2020-01-27 22:42:18 +01:00
parent ccb304dce9
commit ef856d01cc
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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;