This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]