This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
The usage of _dl_hwcap and dl_hwcap_mask is confusing
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Wed, 18 Jun 2003 10:51:32 -0700
- Subject: 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. sysdeps/i386/fpu/fe*.c checks dl_hwcap_mask
to decide if MXCSR should be used or not. Is that intentional?
Also, has anyone tried
# cat x.c
#include <fenv.h>
int
main ()
{
fetestexcept (FE_INVALID);
return 0;
}
# gcc x.c -lm -static
Does it work for anyone?
H.J.