diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-10 10:14:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-11 11:25:43 +0100 |
commit | 941f2c866a98ca7caf71a11732853da012cd25e4 (patch) | |
tree | d5879ca5a6c50c8258e62d343f4c90cf9a6127f5 /opencl | |
parent | cd3990d1d8f212474dee1c1d989f005e4d9913a4 (diff) |
convert more long -> tools::Long
found by grepping and changed by hand.
Change-Id: I3c720859dba430fde3abc76c6c5cb58269efaf4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105512
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/source/opencl_device.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx index f0f4a07fe6b1..682b92d0eb47 100644 --- a/opencl/source/opencl_device.cxx +++ b/opencl/source/opencl_device.cxx @@ -50,8 +50,8 @@ struct LibreOfficeDeviceEvaluationIO std::vector<double> input2; std::vector<double> input3; std::vector<double> output; - unsigned long inputSize; - unsigned long outputSize; + tools::ULong inputSize; + tools::ULong outputSize; }; const char* source = STRINGIFY( @@ -126,7 +126,7 @@ void populateInput(std::unique_ptr<LibreOfficeDeviceEvaluationIO> const & testDa double* input1 = testData->input1.data(); double* input2 = testData->input2.data(); double* input3 = testData->input3.data(); - for (unsigned long i = 0; i < testData->inputSize; i++) + for (tools::ULong i = 0; i < testData->inputSize; i++) { input0[i] = random(0, i); input1[i] = random(0, i); @@ -276,13 +276,13 @@ ds_status evaluateScoreForDevice(ds_device& rDevice, std::unique_ptr<LibreOffice SAL_INFO("opencl.device", "Device: \"CPU\" (Native) evaluation..."); sal_uInt64 kernelTime = tools::Time::GetMonotonicTicks(); - unsigned long j; + tools::ULong j; for (j = 0; j < testData->outputSize; j++) { double fAverage = 0.0f; double fMin = DBL_MAX; double fSoP = 0.0f; - for (unsigned long i = 0; i < testData->inputSize; i++) + for (tools::ULong i = 0; i < testData->inputSize; i++) { fAverage += testData->input0[i]; fMin = std::min(fMin, testData->input1[i]); |