Skip to content

Commit e1fef5d

Browse files
committed
Fix hardware capabilities detection; cksum --debug
1 parent aaa0610 commit e1fef5d

File tree

3 files changed

+185
-156
lines changed

3 files changed

+185
-156
lines changed

.vscode/cspell.dictionaries/jargon.wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ PCLMUL
198198
pclmul
199199
PCLMULQDQ
200200
pclmulqdq
201+
PMULL
202+
pmull
201203
TUNABLES
202204
tunables
203205
VMULL

src/uu/cksum/src/cksum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ use uucore::checksum::{
2020
sanitize_sha2_sha3_length_str,
2121
};
2222
use uucore::error::UResult;
23-
use uucore::hardware::CpuFeatures;
23+
use uucore::hardware::{HasHardwareFeatures as _, SimdPolicy};
2424
use uucore::line_ending::LineEnding;
2525
use uucore::{format_usage, translate};
2626

2727
/// Print CPU hardware capability detection information to stderr
2828
/// This matches GNU cksum's --debug behavior
2929
fn print_cpu_debug_info() {
30-
let features = CpuFeatures::detect();
30+
let features = SimdPolicy::detect();
3131

3232
fn print_feature(name: &str, available: bool) {
3333
if available {

0 commit comments

Comments
 (0)