Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ELMERIKH/PyinMemoryPE
/ power_of_two
Function
power_of_two
pythonmemorymodule/pefile.py:716–717 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
714
715
716
def
power_of_two(val):
717
return
val != 0 and (val & (val - 1)) == 0
718
719
720
def
b(x):
Callers
1
adjust_FileAlignment
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected