This is the mail archive of the libc-alpha@sources.redhat.com 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: The usage of _dl_hwcap and dl_hwcap_mask is confusing


> But dl_hwcap_mask is NOT set based on the hardware the binary is running
> on. It is a compile-time constant. It can only be overridden via an env
> variable. It seems to me that checking _dl_hwcap is more appropriate here.
> Did I miss something?

Oh, I see.  My eyes fixed the wrong variable name before it got to my brain.
That is definitely wrong and should be fixed.  It should in fact be 
(GL(dl_hwcap) & GL(dl_hwcap_mask) & HWCAP_I386_XMM) that's tested, I think.


Thanks,
Roland


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