This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Include hwcap as ifunc argument


On 06/05/2012 12:14 AM, Richard Henderson wrote:
> 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.

>From a S/390 perspective AT_PLATFORM would also be more helpful. We do not add every new
machine feature to the hwcaps vector so it is not possible to deduce the cpu level just
from the hwcaps vector.

I'm working on the S/390 ifunc support and hope to be able to come up with a patch soon.

Bye,

-Andreas-


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]