This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: The usage of _dl_hwcap and dl_hwcap_mask is confusing
- From: Roland McGrath <roland at redhat dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Tue, 24 Jun 2003 22:12:21 -0700
- Subject: 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