folly::x86_cpuid_max

Returns the maximum supported cpuid leaf for the given leaf group.

Synopsis

Declared in <folly/system/arch/x86.h>

unsigned int
x86_cpuid_max(
    unsigned int leaf,
    unsigned int* sig);

Return Value

The maximum supported leaf value from eax.

Parameters

NameDescription
leafThe cpuid leaf group to query.
sigOptional out-pointer receiving the vendor signature from ebx.