Searched refs:IsPowerOf2 (Results 1 – 4 of 4) sorted by relevance
69 constexpr bool IsPowerOf2(unsigned int x) noexcept { in IsPowerOf2() function77 static_assert(IsPowerOf2(std::numeric_limits<T>::digits), in RotateRight()88 static_assert(IsPowerOf2(std::numeric_limits<T>::digits), in RotateLeft()126 static_assert(IsPowerOf2(std::numeric_limits<T>::digits), in Popcount()236 static_assert(IsPowerOf2(std::numeric_limits<T>::digits), in CountLeadingZeroes()319 static_assert(IsPowerOf2(std::numeric_limits<T>::digits), in CountTrailingZeroes()
46 bool IsPowerOf2(uint32_t val) { in IsPowerOf2() function91 if (IsPowerOf2(constVal)) { in ReplaceMultiplyByPowerOf2()