MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / rotateLeft

Function rotateLeft

LibLemon/include/lemon/core/rotate.h:11–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template<typename I>
11constexpr static inline I rotateLeft(I value, size_t amount){
12 return (value << amount) | (value >> (-amount & (sizeof(I) * 8 - 1)));
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected