Browse Source

Merge commit 'ce7edb457586f291724ad84b2391074c42526702' into evmjit

Conflicts:
	evmjit/libevmjit/Arith256.cpp
cl-refactor
Paweł Bylica 10 years ago
parent
commit
15b253aab8
  1. 7
      evmjit/libevmjit/Arith256.cpp

7
evmjit/libevmjit/Arith256.cpp

@ -409,12 +409,15 @@ namespace
uint256(uint64_t lo, uint64_t mid, uint128 hi): lo(lo), mid(mid), hi(hi) {}
uint256(uint128 n)
{
*((uint128*)&lo) = n;
lo = (uint64_t) n;
mid = (uint64_t) (n >> 64);
}
explicit operator uint128()
{
return *((uint128*)&lo);
uint128 r = lo;
r |= ((uint128) mid) << 64;
return r;
}
uint256 operator+(uint256 a)

Loading…
Cancel
Save