Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ zigzag_decode
Function
zigzag_decode
tools/python/mwm/mwm_python.py:464–466 ·
view source on GitHub ↗
(uint: int)
Source
from the content-addressed store, hash-verified
462
463
464
def
zigzag_decode(uint: int) -> int:
465
res = uint >> 1
466
return
res
if
uint & 1 == 0
else
-res
467
468
469
def
read_varint(f) -> int:
Callers
1
read_varint
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected