[Mingw-w64-public] [PATCH] sqrt: Fix NaN propagation for IEEE Std 754-2008

2016-04-05 Thread Ray Donnelly
The R language has some hacks specifically for mingw-w64 that were caused by our handling of NaNs in sqrt(x). R uses a special valued NaN to mean 'Not Available' and expects it to be retained through various calculations. Our sqrt(x) doesn't do this, instead it normalises such a NaN (retaining

[Mingw-w64-public] [PATCH] sqrt: Fix NaN propagation for IEEE Std 754-2008

2016-04-05 Thread Ray Donnelly
Here's the sqrt(x) NaN propgation patch again, this time with a reference to the IEEE standard and as a git patch. If it's ok to commit, can someone go ahead? Ray Donnelly (1): sqrt: Fix NaN propagation for IEEE Std 754-2008 mingw-w64-crt/math/sqrt.def.h | 5 ++--- 1 file changed, 2