Skip to content
Prev 10167 / 63424 Next

^ operation much slower in R 1.7.1 than in R 1.7.0 ???

Thomas Lumley <tlumley@u.washington.edu> writes:
I think we can be fairly sure that the reason is that a new pow()
function was injected in the mingw runtime. You can find the actual
code in

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mingw/runtime/mingwex/math/

*why* this code was inserted is anyones guess. Googling threw up some
 hint that the MS-supplied pow() was upsetting strtod and causing a
 regression test failure with the Gimp. The code looks considerably
 different from the kind of stuff used on Linux though, e.g. it
 appears not to use FPU transcendentals. I suppose one could ask the
 author...

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.