[Libva] [PATCH 1/2] Use the inline CPUID assembly to obtain CPUID string instead of /proc/cpuinfo

Matt Turner mattst88 at gmail.com
Wed Sep 24 14:20:04 PDT 2014


On Wed, Sep 24, 2014 at 12:13 AM, Zhao Yakui <yakui.zhao at intel.com> wrote:
> On some systems there is no access to /proc/cpuinfo. So the inline assembly
> is used directly to detect the CPUID string.

You should use gcc's cpuid.h header (clang provides it too) and the
macros it provides. It'll handle the comments about PIC code and
32-bit without you having to think about it.


More information about the Libva mailing list