D Programming Language 2.0

- Comments
- D
- Search
- Home

Last update Wed Aug 1 09:43:22 2012

# std.cpuid

Deprecated. It will be removed in January 2013. Please use core.cpuid instead.

Identify the characteristics of the host CPU.

Implemented according to:

- 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());
    }

BUGS:
Only works on x86 CPUs

License:
Boost License 1.0.

Authors:
Tomas Lindquist Olsen <tomas@famolsen.dk>

Source:
std/cpuid.d

deprecated string toString();
  Returns everything as a printable string

deprecated alias vendor;
  Returns vendor string

deprecated alias processor;
  Returns processor string

deprecated alias mmx;
  Is MMX supported?

deprecated alias fxsr;
  Is FXSR supported?

deprecated alias sse;
  Is SSE supported?

deprecated alias sse2;
  Is SSE2 supported?

deprecated alias sse3;
  Is SSE3 supported?

deprecated alias ssse3;
  Is SSSE3 supported?

deprecated alias amd3dnow;
  Is AMD 3DNOW supported?

deprecated alias amd3dnowExt;
  Is AMD 3DNOW Ext supported?

deprecated alias amdMmx;
  Is AMD MMX supported?

deprecated alias ia64;
  Is this an Intel Architecture IA64?

deprecated alias amd64;
  Is this an AMD 64?

deprecated alias hyperThreading;
  Is hyperthreading supported?

deprecated alias threadsPerCPU;
  Returns number of threads per CPU

deprecated alias coresPerCPU;
  Returns number of cores in CPU

deprecated @property bool intel();
  Is this an Intel processor?

deprecated @property bool amd();
  Is this an AMD processor?

deprecated @property uint stepping();
  Returns stepping

deprecated @property uint model();
  Returns model

deprecated @property uint family();
  Returns family

Copyright Tomas Lindquist Olsen 2007 - 2009. | Page generated by Ddoc.