mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixed a badly resolved merge conflict
This commit is contained in:
parent
7c22a387f3
commit
d152923548
@ -271,7 +271,7 @@ idea is that assembly libraries will be used to enhance the language in such way
|
|||||||
// by using o_code = new bytes(size)
|
// by using o_code = new bytes(size)
|
||||||
o_code := mload(0x40)
|
o_code := mload(0x40)
|
||||||
// new "memory end" including padding
|
// new "memory end" including padding
|
||||||
mstore(0x40, add(o_code, and(add(add(size, 0x20), 0x1f), bnot(0x1f))))
|
mstore(0x40, add(o_code, and(add(add(size, 0x20), 0x1f), not(0x1f))))
|
||||||
// store length in memory
|
// store length in memory
|
||||||
mstore(o_code, size)
|
mstore(o_code, size)
|
||||||
// actually retrieve the code, this needs assembly
|
// actually retrieve the code, this needs assembly
|
||||||
@ -359,7 +359,7 @@ The opcodes `pushi` and `jumpdest` cannot be used directly.
|
|||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
| exp(x, y) | | x to the power of y |
|
| exp(x, y) | | x to the power of y |
|
||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
| bnot(x) | | ~x, every bit of x is negated |
|
| not(x) | | ~x, every bit of x is negated |
|
||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
| lt(x, y) | | 1 if x < y, 0 otherwise |
|
| lt(x, y) | | 1 if x < y, 0 otherwise |
|
||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
@ -371,7 +371,7 @@ The opcodes `pushi` and `jumpdest` cannot be used directly.
|
|||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
| eq(x, y) | | 1 if x == y, 0 otherwise |
|
| eq(x, y) | | 1 if x == y, 0 otherwise |
|
||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
| not(x) | | 1 if x == 0, 0 otherwise |
|
| iszero(x) | | 1 if x == 0, 0 otherwise |
|
||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
| and(x, y) | | bitwise and of x and y |
|
| and(x, y) | | bitwise and of x and y |
|
||||||
+-------------------------+------+-----------------------------------------------------------------+
|
+-------------------------+------+-----------------------------------------------------------------+
|
||||||
|
Loading…
Reference in New Issue
Block a user