std.cpuid
実行環境のCPUの特性を調べる関数群です。以下の資料に準じて実装されています:
- AP-485 Intel(C) Processor Identification and the CPUID Instruction http://www.intel.com/design/xeon/applnots/241618.htm
- Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 2A: Instruction Set Reference, A-M http://developer.intel.com/design/pentium4/manuals/index_new.htm
- AMD CPUID Specification Publication # 25481 http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/25481.pdf
Example:
import std.cpuid; import std.stdio; void main() { writefln(std.cpuid.toString()); }Source:
std/cpuid.d
License:
Boost License 1.0
Authors:
Tomas Lindquist Olsen <tomas@famolsen.dk>
BUGS:
Only works on x86 CPUs
- 全ての情報を表示可能な文字列として返します
 - ベンダー名文字列を返します
 - プロセッサ名文字列を返します
 - MMX対応かどうか
 - FXSR対応かどうか
 - SSE対応かどうか
 - SSE2対応かどうか
 - SSE3対応かどうか
 - SSSE3対応かどうか
 - AMD 3DNOW 対応かどうか
 - AMD 3DNOW Ext 対応かどうか
 - AMD MMX 対応かどうか
 - Intel の IA64 アーキテクチャかどうか
 - AMD64 CPU かどうか
 - HyperThreading 対応かどうか
 - CPUごとのスレッド数
 - CPUごとのコア数
 - Intelプロセッサかどうか
 - AMDプロセッサかどうか
 - ステッピングナンバーを返します
 - モデルナンバーを返します
 - ファミリを返します
 
