The usage of _dl_hwcap and dl_hwcap_mask is confusing

Roland McGrath roland@redhat.com
Wed Jun 25 05:44:00 GMT 2003


> 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



More information about the Libc-alpha mailing list