[cfe-commits] r145149 - /cfe/trunk/lib/Headers/cpuid.h

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Sun Nov 27 07:32:02 PST 2011

> Could you add a #error for non-x86 architectures?


> This implementation appears to be incomplete; at the very least, it
> will SIGILL on CPUs which don't support the CPUID instruction. -Eli 

That is correct. It will also not first check the maximum supported
value of EAX. Note that cpuid was first implemented in later 486 and
pentium cpus.


More information about the cfe-commits mailing list