Searched refs:unsigned_type (Results 1 – 1 of 1) sorted by relevance
34 using unsigned_type = typename std::make_unsigned<T>::type; in BitSizeOf() local35 static_assert(sizeof(T) == sizeof(unsigned_type), "Unexpected type size mismatch!"); in BitSizeOf()36 static_assert(std::numeric_limits<unsigned_type>::radix == 2, "Unexpected radix!"); in BitSizeOf()37 return std::numeric_limits<unsigned_type>::digits; in BitSizeOf()64 using unsigned_type = typename std::make_unsigned<T>::type; in JAVASTYLE_CLZ() local65 return (x == 0) ? BitSizeOf<T>() : CLZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CLZ()83 using unsigned_type = typename std::make_unsigned<T>::type; in JAVASTYLE_CTZ() local84 return (x == 0) ? BitSizeOf<T>() : CTZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CTZ()285 using unsigned_type = typename std::make_unsigned<T>::type; in IsUint() local288 (static_cast<unsigned_type>(value) <= GetIntLimit<unsigned_type>(kBits) * 2u - 1u)); in IsUint()[all …]