Skip to content

Commit ba177b2

Browse files
committed
deref
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent b624b2c commit ba177b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vortex-buffer/src/bit/count_ones.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ fn mask_byte(byte: u8, bit_offset: usize, bit_len: usize) -> u8 {
7979
fn count_ones_aligned(bytes: &[u8]) -> usize {
8080
#[cfg(target_arch = "x86_64")]
8181
{
82-
if bytes.len() >= 64 && AVX512VPOPCNTDQ {
82+
if bytes.len() >= 64 && *AVX512VPOPCNTDQ {
8383
// SAFETY: Runtime detection guarantees the required target features.
8484
return unsafe { count_ones_aligned_avx512(bytes) };
8585
}
8686

87-
if bytes.len() >= 32 && AVX2 {
87+
if bytes.len() >= 32 && *AVX2 {
8888
// SAFETY: Runtime detection guarantees the required target features.
8989
return unsafe { count_ones_aligned_avx2(bytes) };
9090
}

0 commit comments

Comments
 (0)