On  5-Aug-2003, Peter Dalgaard BSA <[EMAIL PROTECTED]> wrote:

| Also, R is generally compiled with -D NO_MATH_INLINES because of some
| ancient messup with glibc. I'm not sure whether that is actually still
| necessary, but it is forcing the use of the non-inlined pow() function.

I think the origin of this option might be that someone reported a bug
in Octave because exp (-Inf) was returning NaN.  The problem turned
out to be that the inline version of exp returns NaN for Inf, NaN, and
-Inf arguments.  These days it seems that you don't get the inline
versions unless you use -ffast-math (at least that's what I just now
found with gcc 3.3).  Using -DNO_MATH_INLINES might still be needed
for some older GCC compiler/library combinations, so I don't think it
hurts.  I'm not sure whether it matters for R, but according to the
glibc math.h header the inline versions also don't set errno.

jwe

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Reply via email to