sc/source/core/opencl/op_statistical.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 3da65dc8982167517f19e80a288b049118bc3d23 Author: Tor Lillqvist <[email protected]> Date: Fri Mar 6 17:35:09 2015 +0200 Return #VALUE! instead of NaN in the OpenCL NORMSINV() Change-Id: I5bf4d5bb84cc85e631b27741a6fc171ec99eead4 diff --git a/sc/source/core/opencl/op_statistical.cxx b/sc/source/core/opencl/op_statistical.cxx index f6f346f..6e38f84 100644 --- a/sc/source/core/opencl/op_statistical.cxx +++ b/sc/source/core/opencl/op_statistical.cxx @@ -4765,8 +4765,9 @@ void OpNormsinv:: GenSlidingWindowFunction ss <<"}\n"; ss << "z = q < 0.0 ? (-1)*z : z;\n"; ss <<"}\n"; - ss <<"double tmp = z;\n"; - ss <<"return tmp;\n"; + ss <<"if (isnan(z))\n"; + ss <<" return CreateDoubleError(errNoValue);\n"; + ss <<"return z;\n"; ss <<"}\n"; } void OpMedian::GenSlidingWindowFunction( _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
