MCPcopy Create free account
hub / github.com/ElementsProject/elements / rol

Function rol

test/functional/test_framework/ripemd160.py:67–69  ·  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

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

Callers 1

compressFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected