Skip to content

Commit 4f5ea4a

Browse files
Saw-mon-and-Natalieclonker
authored andcommitted
some minor adjustments for Changelog and Yul docs for CLZ
1 parent 049980b commit 4f5ea4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### 0.8.31 (unreleased)
22

33
Language Features:
4-
* Yul: Introduce builtin ``clz(x)`` for counting leading zeoros.
4+
* Yul: Introduce builtin `clz(x)` for counting the number of leading zero bits in a 256-bit word.
55

66
Compiler Features:
77
* ethdebug: Experimental support for instructions and source locations under EOF.

docs/yul.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,8 @@ This document does not want to be a full description of the Ethereum virtual mac
752752
Please refer to a different document if you are interested in the precise semantics.
753753

754754
Opcodes marked with ``-`` do not return a result and all others return exactly one value.
755-
Opcodes marked with ``F``, ``H``, ``B``, ``C``, ``I``, ``L``, ``P``, ``N``, ``R`` and ``O`` are present since
756-
Frontier, Homestead, Byzantium, Constantinople, Istanbul, London, Paris, Cancun, Prague or Osaka respectively.
755+
Opcodes marked with ``F``, ``H``, ``B``, ``C``, ``I``, ``L``, ``P``, ``N`` and ``O`` are present since
756+
Frontier, Homestead, Byzantium, Constantinople, Istanbul, London, Paris, Cancun or Osaka respectively.
757757

758758
In the following, ``mem[a...b)`` signifies the bytes of memory starting at position ``a`` up to
759759
but not including position ``b``, ``storage[p]`` signifies the storage contents at slot ``p``, and
@@ -812,7 +812,7 @@ the ``dup`` and ``swap`` instructions as well as ``jump`` instructions, labels a
812812
+-------------------------+-----+---+-----------------------------------------------------------------+
813813
| sar(x, y) | | C | signed arithmetic shift right y by x bits |
814814
+-------------------------+-----+---+-----------------------------------------------------------------+
815-
| clz(x) | | O | leading zeros of x in binary representation, 256 if x == 0 |
815+
| clz(x) | | O | number of leading zero bits of x, 256 if x == 0 |
816816
+-------------------------+-----+---+-----------------------------------------------------------------+
817817
| addmod(x, y, m) | | F | (x + y) % m with arbitrary precision arithmetic, 0 if m == 0 |
818818
+-------------------------+-----+---+-----------------------------------------------------------------+

0 commit comments

Comments
 (0)