This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Include hwcap as ifunc argument
- From: Richard Henderson <rth at twiddle dot net>
- To: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>
- Cc: libc-alpha at sourceware dot org, libc-ports at sourceware dot org
- Date: Mon, 04 Jun 2012 15:14:22 -0700
- Subject: Re: Include hwcap as ifunc argument
- References: <4FBA744A.6000702@twiddle.net> <4FBFC4EC.1060209@twiddle.net> <CAAKybw_qMks+2nP=mR6=og9H3AphS50UfcOZ5OauTivE98B3Pw@mail.gmail.com>
On 06/04/2012 02:21 PM, Ryan S. Arnold wrote:
> Peter Bergner reminded me today that on PowerPC the IFUNC resolver
> will most likely/often use the value in AT_PLATFORM rather than
> AT_HWCAP to determine which optimized function to use. I suppose this
> would diminish the necessity of passing the hwcap to the ifunc
> resolver.
It depends on what's being tested, I suppose.
Within glibc itself you've got lots of platform-specific tuning, so
you may well use AT_PLATFORM more.
Outside glibc, it might just be a test for Altivec or VDX or whatever.
r~