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 19:43:41 -0700
- Subject: Re: The usage of _dl_hwcap and dl_hwcap_mask is confusing
> The usage of _dl_hwcap and dl_hwcap_mask is very confusing to me. If
> I understand right, dl_hwcap_mask is optional and each platform can
> decide which features are important. Igoring it shouldn't cause the
> correctness problem.
That used to be the case.
> sysdeps/i386/fpu/fe*.c checks dl_hwcap_mask
> to decide if MXCSR should be used or not. Is that intentional?
It seems to be the only thing to do. The bit must come from somewhere for
it to behave correctly.