MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / rotateLeft

Function rotateLeft

src/sha3.cpp:52–55  ·  view source on GitHub ↗

rotate left and wrap around to the right

Source from the content-addressed store, hash-verified

50
51 /// rotate left and wrap around to the right
52 inline uint64_t rotateLeft(uint64_t x, uint8_t numBits)
53 {
54 return (x << numBits) | (x >> (64 - numBits));
55 }
56
57 /// convert litte vs big endian
58 inline uint64_t swap(uint64_t x)

Callers 1

processBlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected