Skip to content

Commit 24c6c38

Browse files
committed
fix: remove inline(always) from target_feature functions
Rust stable doesn't allow combining #[inline(always)] with #[target_feature] - this is an unstable feature (rust-lang/rust#145574).
1 parent 9b8862e commit 24c6c38

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ mod x86_simd {
308308
use std::arch::x86_64::*;
309309

310310
/// SSE4.1 popcount for 128-bit value using hardware popcnt
311-
#[inline(always)]
312311
#[target_feature(enable = "sse4.1", enable = "popcnt")]
313312
pub unsafe fn popcnt128_sse(n: __m128i) -> u64 {
314313
let lo = _mm_cvtsi128_si64(n) as u64;
@@ -318,7 +317,6 @@ mod x86_simd {
318317

319318
/// SSE4.1 VPSHUFB-based popcount (accumulates into byte lanes)
320319
/// Returns vector with per-byte popcounts - use _mm_sad_epu8 to sum
321-
#[inline(always)]
322320
#[target_feature(enable = "ssse3")]
323321
unsafe fn popcnt128_shuffle(v: __m128i, mask: __m128i, table: __m128i) -> __m128i {
324322
let lo = _mm_and_si128(v, mask);
@@ -420,7 +418,6 @@ mod x86_simd {
420418
}
421419

422420
/// AVX2 VPSHUFB-based popcount - accumulates into byte lanes
423-
#[inline(always)]
424421
#[target_feature(enable = "avx2")]
425422
unsafe fn popcnt256_shuffle(v: __m256i, mask: __m256i, table: __m256i) -> __m256i {
426423
let lo = _mm256_and_si256(v, mask);

0 commit comments

Comments
 (0)