velox/common/base/BitUtil.h
inline uint32_t rotateLeft(uint32_t a, int shift) {
#ifdef __BMI2__
  return _rotl(a, shift);
#else
  return (a << shift) | (a >> (32 - shift));
#endif
}
// Shift the bits of unsigned 32-bit integer a left by the number of
// bits specified in shift, rotating the most-significant bit to the
// least-significant bit location, and return the unsigned result.
Shift the bits of unsigned 32-bit integer a left by the number of
bits specified in shift, rotating the most-significant bit to the
least-significant bit location, and return the unsigned result.
Shift the bits of unsigned 32 - bit integer a left by the number of bits specified in shift rotating the most - significant bit to the least - significant bit location and return the unsigned result .
inline uint32_t rotateLeft(uint32_t a, int shift) {
#ifdef __BMI2__
  return _rotl(a, shift);
#else
  return (a << shift) | (a >> (32 - shift));
#endif
}
inline uint32_t rotateLeft ( uint32_t a , int shift ) { #ifdef __BMI2__ return _rotl ( a , shift ) ; #else return ( a << shift ) | ( a >> ( 32 - shift ) ) ; #endif }
Shift the bits of unsigned 32-bit integer a left by the number of
bits specified in shift, rotating the most-significant bit to the
least-significant bit location, and return the unsigned result.
Shift the bits of unsigned 32 - bit integer a left by the number of bits specified in shift rotating the most - significant bit to the least - significant bit location and return the unsigned result .