Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazardu committed Dec 17, 2024
1 parent e3a2a9a commit 126fad0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions transactron/utils/amaranth_ext/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def iter(s: Value, step: int) -> Value:
slen_log = ceil_log2(slen)
closest_pow_2_of_s = 2 ** slen_log
zeros_prepend_count = closest_pow_2_of_s - slen
value = iter(Cat(C(0, shape=zeros_prepend_count), s), slen_log)
value = iter(Cat(C(0, shape=zeros_prepend_count), s), slen_log)

# 0 number edge case
# if s == 0 then iter() returns value off by 1
Expand All @@ -66,7 +66,6 @@ def iter(s: Value, step: int) -> Value:
return result



def count_trailing_zeros(s: Value) -> Value:
return count_leading_zeros(s[::-1])

Expand Down

0 comments on commit 126fad0

Please sign in to comment.