Searched refs:Popcount (Results 1 – 3 of 3) sorted by relevance
74 static_assert(Popcount(~uint32_t{1}) == 31);75 static_assert(Popcount(RawInt32{~UInt32{1}}) == RawInt32{31});76 static_assert(Popcount(SatUInt32{~Int32{1}}) == SatUInt32{31});77 static_assert(Popcount(~UInt32{1}) == UInt32{31});78 static_assert(Popcount(~uint64_t{1}) == 63);79 static_assert(Popcount(RawInt64{~UInt64{1}}) == RawInt64{63});80 static_assert(Popcount(SatUInt64{~Int64{1}}) == SatUInt64{63});81 static_assert(Popcount(~UInt64{1}) == UInt64{63});83 static_assert(Popcount(~static_cast<unsigned __int128>(1)) == 127);84 static_assert(Popcount(RawInt128{~UInt128{1}}) == RawInt128{127});[all …]
258 [[nodiscard]] constexpr T Popcount(T x) { in Popcount() function277 [[nodiscard]] constexpr Raw<T> Popcount(Raw<T> x) { in Popcount() function278 return {Popcount(x.value)}; in Popcount()282 [[nodiscard]] constexpr Saturating<T> Popcount(Saturating<T> x) { in Popcount() function283 return {Popcount(x.value)}; in Popcount()287 [[nodiscard]] constexpr Wrapping<T> Popcount(Wrapping<T> x) { in Popcount() function288 return {Popcount(x.value)}; in Popcount()
642 return Popcount(src); in Vcpopm()