Home
last modified time | relevance | path

Searched refs:Popcount (Results 1 – 3 of 3) sorted by relevance

/frameworks/libs/binary_translation/base/
Dbit_util_test.cc74 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 …]
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h258 [[nodiscard]] constexpr T Popcount(T x) { in Popcount() function
277 [[nodiscard]] constexpr Raw<T> Popcount(Raw<T> x) { in Popcount() function
278 return {Popcount(x.value)}; in Popcount()
282 [[nodiscard]] constexpr Saturating<T> Popcount(Saturating<T> x) { in Popcount() function
283 return {Popcount(x.value)}; in Popcount()
287 [[nodiscard]] constexpr Wrapping<T> Popcount(Wrapping<T> x) { in Popcount() function
288 return {Popcount(x.value)}; in Popcount()
/frameworks/libs/binary_translation/intrinsics/riscv64/include/berberis/intrinsics/riscv64/
Dvector_intrinsics.h642 return Popcount(src); in Vcpopm()