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

Name

Description

leaf

The cpuid leaf group to query.

sig

Optional out‐pointer receiving the vendor signature from ebx.

Created with MrDocs