Commit 7fd6bd7
committed
fix(cksum): use correct cpufeatures macro API for CPU feature detection
The cpufeatures crate uses a macro-based API (cpufeatures::new!) rather than
direct function calls. This fixes compilation errors where has_avx512f,
has_avx512bw, has_avx2, and has_pclmul functions were not found.
The correct API uses:
- cpufeatures::new!(module_name, "feature1", "feature2")
- module_name::get() to check if all features are available
Also corrected pclmulqdq feature name (was has_pclmul, should be pclmulqdq).1 parent 09efa85 commit 7fd6bd7
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
0 commit comments