static_assert(std::is_same<bigint,T>::value||!std::numeric_limits<T>::is_signed,"only unsigned types or bigint supported");//bigint does not carry sign bit on shift
static_assert(std::is_same<bigint,T>::value||!std::numeric_limits<T>::is_signed,"only unsigned types or bigint supported");//bigint does not carry sign bit on shift
static_assert(std::is_same<bigint,T>::value||!std::numeric_limits<T>::is_signed,"only unsigned types or bigint supported");//bigint does not carry sign bit on shift
inti=0;
inti=0;
for(Tv=_val;v;++i,v>>=8){}
for(Tv=_val;v;++i,v>>=8){}
std::stringret(std::max<unsigned>(_min,i),'\0');
std::stringret(std::max<unsigned>(_min,i),'\0');
@ -199,6 +202,7 @@ std::string randomWord();
template<classT>
template<classT>
inlineunsignedbytesRequired(T_i)
inlineunsignedbytesRequired(T_i)
{
{
static_assert(std::is_same<bigint,T>::value||!std::numeric_limits<T>::is_signed,"only unsigned types or bigint supported");//bigint does not carry sign bit on shift