cpufeatures: vpclmulqdq returns wrong result for x86-64-v3
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the cpufeatures::new! macro and its x86 feature detection path for vpclmulqdq; compare its result when compiled for x86-64-v3 with Rust's is_x86_feature_detected! result. The report reproduces the mismatch on Raptor Lake and Zen 3. Done means the macro reports the same runtime feature result in that build configuration.
由索引模型根据 Issue 内容生成。
描述
I tried this code:
cpufeatures::new!(test, "vpclmulqdq");
fn main() {
dbg!(test::get(), is_x86_feature_detected!("vpclmulqdq"));
}
using cpufeatures 0.3.1. From my understanding, the cpufeatures feature detection should return identical results to is_x86_feature_detected!(), but, when compiled for x86-64-v3, this prints (false, true) for me, on two separate machines (Raptorlake and Zen3). When compiled for their native arches, it prints (true, true), presumably just because the native arches have all features enabled, so no runtime detection takes place.
- 主要语言
- Rust
- 星标
- 695
- 派生
- 185
- 平均合并
- 10 小时 40 分钟
- 30 天内合并 PR
- 24
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RustCrypto/utils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
RustCrypto/utils#1555 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
RustCrypto/utils#1546 · 1 条评论 ·
维护者通常 1 天内回复
-
cpufeatures: aarch64 Linux reports aes, sha3 and sm4 when only one of their two HWCAPs is set可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
RustCrypto/utils#1627 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
RustCrypto/utils#1621 · 17 条评论 ·
维护者通常 1 天内回复
-
cpubits: promoting wasm32 to 64-bit makes k256 0.14 up to 3.3x slower in Wasm (p256 0.14 is faster)未关闭
难度 5/5 一周以上 新手友好度 15/100
RustCrypto/utils#1620 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
The new tests repeat each other and one only checks a two-line helper可能重新可做 关联的 PR 已关闭且未合并。 未关闭infra
难度 2/5 1-3 小时 新手友好度 90/100
storytold/wordcraft#9405 · 2 条评论 ·
维护者通常 1 天内回复
-
in-progress
难度 2/5 1-3 小时 新手友好度 68/100
-
area: ai-assistants documentation help wanted
难度 2/5 1-3 小时 新手友好度 78/100
BetaBots-LLC/latticegate#17 ·
-
难度 1/5 1 小时以内 新手友好度 94/100
storytold/craft-libs#5594 ·
维护者通常 1 天内回复
-
available documentation good first issue
难度 2/5 1-3 小时 新手友好度 75/100
Nixitov/Riptide-Native#932 ·
维护者通常 1 天内回复