diff options
author | chriseth <chris@ethereum.org> | 2018-11-14 08:09:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 08:09:28 +0800 |
commit | 10d99fc378499fd48b3409d8ec97e33fb11937a6 (patch) | |
tree | e475a858851c068b1665167f5cacc8bfa14c8eb2 | |
parent | 74ede87a4aed4dcf0995480d8e809f4aa2e848df (diff) | |
parent | 79243eac08f5d8d3ccedbbedb929848a58ff26c4 (diff) | |
download | dexon-solidity-10d99fc378499fd48b3409d8ec97e33fb11937a6.tar.gz dexon-solidity-10d99fc378499fd48b3409d8ec97e33fb11937a6.tar.zst dexon-solidity-10d99fc378499fd48b3409d8ec97e33fb11937a6.zip |
Merge pull request #5367 from ethereum/signedYul
[Yul] Rename some builtin yul functions for signed types.
-rw-r--r-- | docs/yul.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/yul.rst b/docs/yul.rst index 9e9fac8e..ea0a298b 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -369,10 +369,10 @@ The following functions must be available: +---------------------------------------------+-----------------------------------------------------------------+ | gtu256(x:u256, y:u256) -> z:bool | true if x > y, false otherwise | +---------------------------------------------+-----------------------------------------------------------------+ -| sltu256(x:s256, y:s256) -> z:bool | true if x < y, false otherwise | +| lts256(x:s256, y:s256) -> z:bool | true if x < y, false otherwise | | | (for signed numbers in two's complement) | +---------------------------------------------+-----------------------------------------------------------------+ -| sgtu256(x:s256, y:s256) -> z:bool | true if x > y, false otherwise | +| gts256(x:s256, y:s256) -> z:bool | true if x > y, false otherwise | | | (for signed numbers in two's complement) | +---------------------------------------------+-----------------------------------------------------------------+ | equ256(x:u256, y:u256) -> z:bool | true if x == y, false otherwise | @@ -391,7 +391,7 @@ The following functions must be available: +---------------------------------------------+-----------------------------------------------------------------+ | shru256(x:u256, y:u256) -> z:u256 | logical right shift of x by y | +---------------------------------------------+-----------------------------------------------------------------+ -| saru256(x:u256, y:u256) -> z:u256 | arithmetic right shift of x by y | +| sars256(x:s256, y:u256) -> z:u256 | arithmetic right shift of x by y | +---------------------------------------------+-----------------------------------------------------------------+ | byte(n:u256, x:u256) -> v:u256 | nth byte of x, where the most significant byte is the 0th byte | | | Cannot this be just replaced by and256(shr256(n, x), 0xff) and | |