This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: symbolic names for processor IDs
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Ulrich Drepper <drepper at gmail dot com>
- Date: Sat, 8 Sep 2012 13:17:11 +0200
- Subject: Re: symbolic names for processor IDs
Hello!
> The x86 cpuid instruction returns a processor ID and the
> __get_cpuid_max function even explicitly makes the %ebx value directly
> available. But users of that function have to use a cryptic constant.
> How about adding a few macros to make this more transparent?
There are some other cpuid vendor signatures than AMD and Intel, and
probably there will be some more. IMO, anybody using __get_cpuid_max
call should define accepted signatures by itself.
Uros.