This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: V5 [PATCH 1/2] x86: Add <sys/platform/x86.h>
- From: Florian Weimer <fweimer at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 24 Oct 2018 11:15:57 +0200
- Subject: Re: V5 [PATCH 1/2] x86: Add <sys/platform/x86.h>
- References: <20180927194327.7683-1-hjl.tools@gmail.com> <20180927194327.7683-2-hjl.tools@gmail.com>
* H. J. Lu:
> +@defmac HAS_CPU_FEATURE(name)
> +
> +Evaluate to true if the CPU feature @code{name} is supported as indicated
> +by @code{CPUID} instruction. The available features are:
I'm still puzzled why we expose this function. It will only confuse
programmers.
> +@defmac CPU_FEATURE_USABLE(name)
> +
> +Evaluate to true if the architecture feature @code{name} is usable.
> +The supported features are:
This is the only interface which should be exposed.
Thanks,
Florian