rust-cpuid:锈中的cpuid库

时间:2021-05-09 04:37:01
【文件属性】:
文件名称:rust-cpuid:锈中的cpuid库
文件大小:43KB
文件格式:ZIP
更新时间:2021-05-09 04:37:01
Rust cpuid 一个用于解析x86 CPUID指令的库,该指令以rust形式编写,没有任何外部依赖关系。 该实现与Intel CPUID手册描述非常相似。 该库仅依赖libcore。 该代码应与《英特尔架构软件开发人员手册》的最新2018年3月修订版保持同步。 图书馆使用 let cpuid = CpuId :: new (); match cpuid. get_vendor_info () { Some (vf) => assert! (vf. as_string () == "GenuineIntel" ), None => () } let has_sse = match cpuid. get_feature_info () { Some (finfo) => finfo. has_sse (), None => false }; if has_sse
【文件预览】:
rust-cpuid-master
----.gitignore(26B)
----src()
--------bin()
--------tests.rs(24KB)
--------lib.rs(139KB)
----LICENSE.md(1KB)
----.travis.yml(2KB)
----Cargo.toml(997B)
----examples()
--------cache.rs(2KB)
--------cpu.rs(9KB)
--------tsc_frequency.rs(3KB)
--------topology.rs(7KB)
----README.md(1KB)
----ci()
--------install.sh(1KB)
--------before_deploy.sh(694B)
--------script.sh(501B)
--------before_deploy.ps1(576B)
----AUTHORS(235B)

网友评论