Template Function lbcrypto::GetMSB

Function Documentation

template<typename T, std::enable_if_t<std::is_integral_v<T> || std::is_same_v<T, int128_t> || std::is_same_v<T, uint128_t>, bool> = true>
inline constexpr usint lbcrypto::GetMSB(T x)

Get MSB of an integer.

Parameters

x – the input to find MSB of.

Returns

the index of the MSB bit location.