projects
/
nmigen-type-annotations.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix Record and Layout typing
[nmigen-type-annotations.git]
/
nmigen
/
tools.py
1
def
log2_int
(
n
:
int
,
need_pow2
:
bool
=
True
) ->
int
:
2
...
3
4
5
def
bits_for
(
n
:
int
,
require_sign_bit
:
bool
=
False
) ->
int
:
6
...