Function lbcrypto::ReverseBits

Function Documentation

inline uint32_t lbcrypto::ReverseBits(uint32_t num, uint32_t msb)

Method to reverse bits of num and return an unsigned int, for all bits up to an including the designated most significant bit.

Parameters
  • num – an unsigned int

  • msb – the most significant bit. All larger bits are disregarded.

Returns

an unsigned integer that represents the reversed bits.