MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / rol

Function rol

bitcoin/core/contrib/ripemd160.py:68–70  ·  view source on GitHub ↗

Rotate the bottom 32 bits of x left by i bits.

(x, i)

Source from the content-addressed store, hash-verified

66
67
68def rol(x, i):
69 """Rotate the bottom 32 bits of x left by i bits."""
70 return ((x << i) | ((x & 0xffffffff) >> (32 - i))) & 0xffffffff
71
72
73def compress(h0, h1, h2, h3, h4, block):

Callers 1

compressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected