The OpenD Programming Language

Leaf4Information

Deterministic Cache Parameters for Each Level.

** - Add one to the return value to get the result.

Specification: Intel

Members

Structs

__anonymous
struct __anonymous

Variables

info
CpuInfo info;

CPUID payload

Examples

if(maxBasicLeaf >= 4 && vendorIndex == VendorIndex.intel)
{
    Cache cache = void;
    Leaf4Information leaf4 = void;
    foreach(ecx; 0..12)
    {
        leaf4.info = _cpuid(4, ecx);
        if(!leaf4.type)
            break;
        leaf4.fill(cache);
        debug(cpuid) import std.stdio;
        debug(cpuid) writefln("Cache #%s has type '%s' and %s KB size", ecx, leaf4.type, leaf4.size);
    }
}

Meta