Home
last modified time | relevance | path

Searched refs:popcount (Results 1 – 25 of 2485) sorted by relevance

12345678910>>...100

/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp33 return std::popcount(T(0)) == 0 in constexpr_test()
34 && std::popcount(T(1)) == 1 in constexpr_test()
35 && std::popcount(T(2)) == 1 in constexpr_test()
36 && std::popcount(T(3)) == 2 in constexpr_test()
37 && std::popcount(T(4)) == 1 in constexpr_test()
38 && std::popcount(T(5)) == 2 in constexpr_test()
39 && std::popcount(T(6)) == 2 in constexpr_test()
40 && std::popcount(T(7)) == 3 in constexpr_test()
41 && std::popcount(T(8)) == 1 in constexpr_test()
42 && std::popcount(T(9)) == 2 in constexpr_test()
[all …]
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp33 return std::popcount(T(0)) == 0 in constexpr_test()
34 && std::popcount(T(1)) == 1 in constexpr_test()
35 && std::popcount(T(2)) == 1 in constexpr_test()
36 && std::popcount(T(3)) == 2 in constexpr_test()
37 && std::popcount(T(4)) == 1 in constexpr_test()
38 && std::popcount(T(5)) == 2 in constexpr_test()
39 && std::popcount(T(6)) == 2 in constexpr_test()
40 && std::popcount(T(7)) == 3 in constexpr_test()
41 && std::popcount(T(8)) == 1 in constexpr_test()
42 && std::popcount(T(9)) == 2 in constexpr_test()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/buildtools/third_party/libc++/trunk/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp33 return std::popcount(T(0)) == 0 in constexpr_test()
34 && std::popcount(T(1)) == 1 in constexpr_test()
35 && std::popcount(T(2)) == 1 in constexpr_test()
36 && std::popcount(T(3)) == 2 in constexpr_test()
37 && std::popcount(T(4)) == 1 in constexpr_test()
38 && std::popcount(T(5)) == 2 in constexpr_test()
39 && std::popcount(T(6)) == 2 in constexpr_test()
40 && std::popcount(T(7)) == 3 in constexpr_test()
41 && std::popcount(T(8)) == 1 in constexpr_test()
42 && std::popcount(T(9)) == 2 in constexpr_test()
[all …]
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp33 return std::popcount(T(0)) == 0 in constexpr_test()
34 && std::popcount(T(1)) == 1 in constexpr_test()
35 && std::popcount(T(2)) == 1 in constexpr_test()
36 && std::popcount(T(3)) == 2 in constexpr_test()
37 && std::popcount(T(4)) == 1 in constexpr_test()
38 && std::popcount(T(5)) == 2 in constexpr_test()
39 && std::popcount(T(6)) == 2 in constexpr_test()
40 && std::popcount(T(7)) == 3 in constexpr_test()
41 && std::popcount(T(8)) == 1 in constexpr_test()
42 && std::popcount(T(9)) == 2 in constexpr_test()
[all …]
/dports/devel/libc++/libcxx-10.0.1.src/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp33 return std::popcount(T(0)) == 0 in constexpr_test()
34 && std::popcount(T(1)) == 1 in constexpr_test()
35 && std::popcount(T(2)) == 1 in constexpr_test()
36 && std::popcount(T(3)) == 2 in constexpr_test()
37 && std::popcount(T(4)) == 1 in constexpr_test()
38 && std::popcount(T(5)) == 2 in constexpr_test()
39 && std::popcount(T(6)) == 2 in constexpr_test()
40 && std::popcount(T(7)) == 3 in constexpr_test()
41 && std::popcount(T(8)) == 1 in constexpr_test()
42 && std::popcount(T(9)) == 2 in constexpr_test()
[all …]
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp33 return std::popcount(T(0)) == 0 in constexpr_test()
34 && std::popcount(T(1)) == 1 in constexpr_test()
35 && std::popcount(T(2)) == 1 in constexpr_test()
36 && std::popcount(T(3)) == 2 in constexpr_test()
37 && std::popcount(T(4)) == 1 in constexpr_test()
38 && std::popcount(T(5)) == 2 in constexpr_test()
39 && std::popcount(T(6)) == 2 in constexpr_test()
40 && std::popcount(T(7)) == 3 in constexpr_test()
41 && std::popcount(T(8)) == 1 in constexpr_test()
42 && std::popcount(T(9)) == 2 in constexpr_test()
[all …]
/dports/devel/llvm12/llvm-project-12.0.1.src/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp33 return std::popcount(T(0)) == 0 in constexpr_test()
34 && std::popcount(T(1)) == 1 in constexpr_test()
35 && std::popcount(T(2)) == 1 in constexpr_test()
36 && std::popcount(T(3)) == 2 in constexpr_test()
37 && std::popcount(T(4)) == 1 in constexpr_test()
38 && std::popcount(T(5)) == 2 in constexpr_test()
39 && std::popcount(T(6)) == 2 in constexpr_test()
40 && std::popcount(T(7)) == 3 in constexpr_test()
41 && std::popcount(T(8)) == 1 in constexpr_test()
42 && std::popcount(T(9)) == 2 in constexpr_test()
[all …]
/dports/devel/intel-graphics-compiler/intel-graphics-compiler-igc-1.0.9636/IGC/BiFModule/Languages/OpenCL/Integer/
H A Dpopcnt.cl13 INLINE char OVERLOADABLE popcount( char x )
15 return popcount( as_uchar( x ) );
18 INLINE short OVERLOADABLE popcount( short x )
20 return popcount( as_ushort( x ) );
23 INLINE int OVERLOADABLE popcount( int x )
25 return popcount( as_uint( x ) );
28 INLINE long OVERLOADABLE popcount( long x )
30 return popcount( as_ulong( x ) );
33 INLINE ulong OVERLOADABLE popcount( ulong x )
36 return popcount( v.x ) + popcount( v.y );
[all …]
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp32 ASSERT_NOEXCEPT(std::popcount(T())); in test()
35 assert(std::popcount(T(0)) == 0); in test()
36 assert(std::popcount(T(1)) == 1); in test()
37 assert(std::popcount(T(2)) == 1); in test()
38 assert(std::popcount(T(3)) == 2); in test()
39 assert(std::popcount(T(4)) == 1); in test()
40 assert(std::popcount(T(5)) == 2); in test()
41 assert(std::popcount(T(6)) == 2); in test()
42 assert(std::popcount(T(7)) == 3); in test()
43 assert(std::popcount(T(8)) == 1); in test()
[all …]
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp32 ASSERT_NOEXCEPT(std::popcount(T())); in test()
35 assert(std::popcount(T(0)) == 0); in test()
36 assert(std::popcount(T(1)) == 1); in test()
37 assert(std::popcount(T(2)) == 1); in test()
38 assert(std::popcount(T(3)) == 2); in test()
39 assert(std::popcount(T(4)) == 1); in test()
40 assert(std::popcount(T(5)) == 2); in test()
41 assert(std::popcount(T(6)) == 2); in test()
42 assert(std::popcount(T(7)) == 3); in test()
43 assert(std::popcount(T(8)) == 1); in test()
[all …]
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp32 ASSERT_NOEXCEPT(std::popcount(T())); in test()
35 assert(std::popcount(T(0)) == 0); in test()
36 assert(std::popcount(T(1)) == 1); in test()
37 assert(std::popcount(T(2)) == 1); in test()
38 assert(std::popcount(T(3)) == 2); in test()
39 assert(std::popcount(T(4)) == 1); in test()
40 assert(std::popcount(T(5)) == 2); in test()
41 assert(std::popcount(T(6)) == 2); in test()
42 assert(std::popcount(T(7)) == 3); in test()
43 assert(std::popcount(T(8)) == 1); in test()
[all …]
/dports/devel/llvm13/llvm-project-13.0.1.src/libcxx/test/std/numerics/bit/bitops.count/
H A Dpopcount.pass.cpp32 ASSERT_NOEXCEPT(std::popcount(T())); in test()
35 assert(std::popcount(T(0)) == 0); in test()
36 assert(std::popcount(T(1)) == 1); in test()
37 assert(std::popcount(T(2)) == 1); in test()
38 assert(std::popcount(T(3)) == 2); in test()
39 assert(std::popcount(T(4)) == 1); in test()
40 assert(std::popcount(T(5)) == 2); in test()
41 assert(std::popcount(T(6)) == 2); in test()
42 assert(std::popcount(T(7)) == 3); in test()
43 assert(std::popcount(T(8)) == 1); in test()
[all …]
/dports/lang/gcc9-aux/gcc-9.1.0/libstdc++-v3/testsuite/26_numerics/bit/bitops.count/
H A Dpopcount.cc26 -> decltype(std::popcount(x)) in test()
28 static_assert( noexcept(std::popcount(x)) ); in test()
32 static_assert( std::popcount((UInt)0) == 0 ); in test()
33 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)127) == 7 ); in test()
37 static_assert( std::popcount((UInt)1) == 1 ); in test()
38 static_assert( std::popcount((UInt)2) == 1 ); in test()
39 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
79 static_assert( std::popcount(std::byte{0x00}) == 0 );
80 static_assert( std::popcount(std::byte{0x01}) == 1 );
[all …]
/dports/misc/thrill/thrill-12c5b59bca66df93b66628b3829027bd0f110dd9/extlib/tlx/tlx/math/
H A Dpopcount.hpp65 static inline unsigned popcount(unsigned i) { in popcount() function
70 static inline unsigned popcount(int i) { in popcount() function
71 return popcount(static_cast<unsigned>(i)); in popcount()
75 static inline unsigned popcount(unsigned long i) { in popcount() function
80 static inline unsigned popcount(long i) { in popcount() function
81 return popcount(static_cast<unsigned long>(i)); in popcount()
90 static inline unsigned popcount(long long i) { in popcount() function
98 inline unsigned popcount(Integral i) { in popcount() function
114 inline unsigned popcount(Integral i) { in popcount() function
133 size_t popcount(const void* data, size_t size) { in popcount() function
[all …]
/dports/devel/tlx/tlx-0.5.20200222-5-g8982a9d/tlx/math/
H A Dpopcount.hpp65 static inline unsigned popcount(unsigned i) { in popcount() function
70 static inline unsigned popcount(int i) { in popcount() function
71 return popcount(static_cast<unsigned>(i)); in popcount()
75 static inline unsigned popcount(unsigned long i) { in popcount() function
80 static inline unsigned popcount(long i) { in popcount() function
81 return popcount(static_cast<unsigned long>(i)); in popcount()
90 static inline unsigned popcount(long long i) { in popcount() function
98 inline unsigned popcount(Integral i) { in popcount() function
114 inline unsigned popcount(Integral i) { in popcount() function
133 size_t popcount(const void* data, size_t size) { in popcount() function
[all …]
/dports/lang/gcc11/gcc-11.2.0/libstdc++-v3/testsuite/26_numerics/bit/bit.count/
H A Dpopcount.cc27 -> decltype(std::popcount(x)) in test()
29 static_assert( noexcept(std::popcount(x)) ); in test()
33 static_assert( std::popcount((UInt)0) == 0 ); in test()
34 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
36 static_assert( std::popcount((UInt)127) == 7 ); in test()
38 static_assert( std::popcount((UInt)1) == 1 ); in test()
39 static_assert( std::popcount((UInt)2) == 1 ); in test()
40 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
44 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/lang/gcc10/gcc-10.3.0/libstdc++-v3/testsuite/26_numerics/bit/bit.count/
H A Dpopcount.cc27 -> decltype(std::popcount(x)) in test()
29 static_assert( noexcept(std::popcount(x)) ); in test()
33 static_assert( std::popcount((UInt)0) == 0 ); in test()
34 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
36 static_assert( std::popcount((UInt)127) == 7 ); in test()
38 static_assert( std::popcount((UInt)1) == 1 ); in test()
39 static_assert( std::popcount((UInt)2) == 1 ); in test()
40 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
44 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/lang/gcc11-devel/gcc-11-20211009/libstdc++-v3/testsuite/26_numerics/bit/bit.count/
H A Dpopcount.cc27 -> decltype(std::popcount(x)) in test()
29 static_assert( noexcept(std::popcount(x)) ); in test()
33 static_assert( std::popcount((UInt)0) == 0 ); in test()
34 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
36 static_assert( std::popcount((UInt)127) == 7 ); in test()
38 static_assert( std::popcount((UInt)1) == 1 ); in test()
39 static_assert( std::popcount((UInt)2) == 1 ); in test()
40 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
44 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/devel/avr-gcc/gcc-10.2.0/libstdc++-v3/testsuite/26_numerics/bit/bit.count/
H A Dpopcount.cc27 -> decltype(std::popcount(x)) in test()
29 static_assert( noexcept(std::popcount(x)) ); in test()
33 static_assert( std::popcount((UInt)0) == 0 ); in test()
34 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
36 static_assert( std::popcount((UInt)127) == 7 ); in test()
38 static_assert( std::popcount((UInt)1) == 1 ); in test()
39 static_assert( std::popcount((UInt)2) == 1 ); in test()
40 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
44 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/lang/gcc9-devel/gcc-9-20211007/libstdc++-v3/testsuite/26_numerics/bit/bitops.count/
H A Dpopcount.cc26 -> decltype(std::popcount(x)) in test()
28 static_assert( noexcept(std::popcount(x)) ); in test()
32 static_assert( std::popcount((UInt)0) == 0 ); in test()
33 static_assert( std::popcount((UInt)-1) == digits ); in test()
34 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
35 static_assert( std::popcount((UInt)127) == 7 ); in test()
37 static_assert( std::popcount((UInt)1) == 1 ); in test()
38 static_assert( std::popcount((UInt)2) == 1 ); in test()
39 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
43 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/lang/gcc10-devel/gcc-10-20211008/libstdc++-v3/testsuite/26_numerics/bit/bit.count/
H A Dpopcount.cc27 -> decltype(std::popcount(x)) in test()
29 static_assert( noexcept(std::popcount(x)) ); in test()
33 static_assert( std::popcount((UInt)0) == 0 ); in test()
34 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
36 static_assert( std::popcount((UInt)127) == 7 ); in test()
38 static_assert( std::popcount((UInt)1) == 1 ); in test()
39 static_assert( std::popcount((UInt)2) == 1 ); in test()
40 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
44 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/lang/gcc9/gcc-9.4.0/libstdc++-v3/testsuite/26_numerics/bit/bitops.count/
H A Dpopcount.cc26 -> decltype(std::popcount(x)) in test()
28 static_assert( noexcept(std::popcount(x)) ); in test()
32 static_assert( std::popcount((UInt)0) == 0 ); in test()
33 static_assert( std::popcount((UInt)-1) == digits ); in test()
34 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
35 static_assert( std::popcount((UInt)127) == 7 ); in test()
37 static_assert( std::popcount((UInt)1) == 1 ); in test()
38 static_assert( std::popcount((UInt)2) == 1 ); in test()
39 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
43 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/misc/cxx_atomics_pic/gcc-11.2.0/libstdc++-v3/testsuite/26_numerics/bit/bit.count/
H A Dpopcount.cc27 -> decltype(std::popcount(x)) in test()
29 static_assert( noexcept(std::popcount(x)) ); in test()
33 static_assert( std::popcount((UInt)0) == 0 ); in test()
34 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
36 static_assert( std::popcount((UInt)127) == 7 ); in test()
38 static_assert( std::popcount((UInt)1) == 1 ); in test()
39 static_assert( std::popcount((UInt)2) == 1 ); in test()
40 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
44 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/lang/gcc12-devel/gcc-12-20211205/libstdc++-v3/testsuite/26_numerics/bit/bit.count/
H A Dpopcount.cc27 -> decltype(std::popcount(x)) in test()
29 static_assert( noexcept(std::popcount(x)) ); in test()
33 static_assert( std::popcount((UInt)0) == 0 ); in test()
34 static_assert( std::popcount((UInt)-1) == digits ); in test()
35 static_assert( std::popcount((UInt)-2) == digits - 1 ); in test()
36 static_assert( std::popcount((UInt)127) == 7 ); in test()
38 static_assert( std::popcount((UInt)1) == 1 ); in test()
39 static_assert( std::popcount((UInt)2) == 1 ); in test()
40 static_assert( std::popcount((UInt)0x70) == 3 ); in test()
44 static_assert( std::popcount((UInt)(0x101)) == 2 ); in test()
[all …]
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/apache/arrow/cpp/src/arrow/util/
H A Dbit_block_counter_test.cc63 ASSERT_EQ(block.popcount, 0); in TEST_F()
70 ASSERT_EQ(block.popcount, 0); in TEST_F()
82 ASSERT_EQ(block.popcount, 0); in TEST_F()
89 ASSERT_EQ(block.popcount, 0); in TEST_F()
119 ASSERT_EQ(block.popcount, 0); in TEST_F()
200 ASSERT_EQ(block.popcount, in TEST_F()
275 ASSERT_EQ(optional_block.popcount, block.popcount); in TEST()
310 ASSERT_EQ(optional_block.popcount, block.popcount); in TEST()
356 ASSERT_EQ(optional_block.popcount, block.popcount); in TEST_F()
373 ASSERT_EQ(optional_block.popcount, block.popcount); in TEST_F()
[all …]

12345678910>>...100