Closed andersk closed 6 years ago
use {faster::Popcnt, std::simd::u64x4}; u64x4::new(!0, !0, 0, 0).count_ones()
correctly returns 128 without -C target-cpu=native, and incorrectly returns 18446744073709551488 (i.e. !127) with -C target-cpu=native.
-C target-cpu=native
correctly returns 128 without
-C target-cpu=native
, and incorrectly returns 18446744073709551488 (i.e. !127) with-C target-cpu=native
.