diff options
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/source/opencl_device.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx index f803076c97b4..c4de9284c8df 100644 --- a/opencl/source/opencl_device.cxx +++ b/opencl/source/opencl_device.cxx @@ -13,6 +13,7 @@ #include <sstream> #include <memory> #include <vector> +#include <algorithm> #include <comphelper/random.hxx> #include <opencl/openclconfig.hxx> @@ -285,7 +286,7 @@ ds_status evaluateScoreForDevice(ds_device& rDevice, std::unique_ptr<LibreOffice for (unsigned long i = 0; i < testData->inputSize; i++) { fAverage += testData->input0[i]; - fMin = ((fMin < testData->input1[i]) ? fMin : testData->input1[i]); + fMin = std::min(fMin, testData->input1[i]); fSoP += testData->input2[i] * testData->input3[i]; } fAverage /= testData->inputSize; |