Skip to content

Commit 33aacc0

Browse files
Merge pull request #279 from egraphs-good/prims
Add missing i64.log2 method
2 parents a59a199 + 9ff6463 commit 33aacc0

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ _This project uses semantic versioning_
44

55
## UNRELEASED
66

7+
- Add missing i64.log2 method to the bindings
8+
79
## 9.0.0 (2025-03-20)
810

911
### Evaluating Primitives

python/egglog/builtins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ def __rlshift__(self, other: i64Like) -> i64: ...
195195

196196
def __rrshift__(self, other: i64Like) -> i64: ...
197197

198+
@method(egg_fn="log2")
199+
def log2(self) -> i64: ...
200+
198201
@method(egg_fn="not-i64")
199202
def __invert__(self) -> i64: ...
200203

0 commit comments

Comments
 (0)