The usage of _dl_hwcap and dl_hwcap_mask is confusing
H. J. Lu
hjl@lucon.org
Wed Jun 18 17:54:00 GMT 2003
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.
More information about the Libc-alpha
mailing list