From b3cca5c34324bf48a77447824dda72e1ba972be1 Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Tue, 13 Feb 2024 14:58:33 +0100 Subject: [PATCH] format with clang-format-11 --- .../images/clCopyImage/test_copy_1D_buffer.cpp | 14 ++++++-------- .../images/clFillImage/test_fill_1D_buffer.cpp | 7 +++---- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/test_conformance/images/clCopyImage/test_copy_1D_buffer.cpp b/test_conformance/images/clCopyImage/test_copy_1D_buffer.cpp index e741854b35..f8f14bd442 100644 --- a/test_conformance/images/clCopyImage/test_copy_1D_buffer.cpp +++ b/test_conformance/images/clCopyImage/test_copy_1D_buffer.cpp @@ -54,14 +54,12 @@ int test_copy_image_size_1D_buffer(cl_context context, cl_command_queue queue, : width_lod; // Now pick positions within valid ranges - sourcePos[0] = (width_lod > regionSize[0]) - ? (size_t)random_in_range(0, (int)(width_lod - regionSize[0] - 1), - d) - : 0; - destPos[0] = (width_lod > regionSize[0]) - ? (size_t)random_in_range(0, (int)(width_lod - regionSize[0] - 1), - d) - : 0; + sourcePos[0] = (width_lod > regionSize[0]) ? (size_t)random_in_range( + 0, (int)(width_lod - regionSize[0] - 1), d) + : 0; + destPos[0] = (width_lod > regionSize[0]) ? (size_t)random_in_range( + 0, (int)(width_lod - regionSize[0] - 1), d) + : 0; // Go for it! diff --git a/test_conformance/images/clFillImage/test_fill_1D_buffer.cpp b/test_conformance/images/clFillImage/test_fill_1D_buffer.cpp index c6e29ddbdd..e3079c4678 100644 --- a/test_conformance/images/clFillImage/test_fill_1D_buffer.cpp +++ b/test_conformance/images/clFillImage/test_fill_1D_buffer.cpp @@ -51,10 +51,9 @@ int test_fill_image_size_1D_buffer(cl_context context, cl_command_queue queue, : imageInfo->width; // Now pick positions within valid ranges - origin[0] = (imageInfo->width > region[0]) - ? (size_t)random_in_range( - 0, (int)(imageInfo->width - region[0] - 1), d) - : 0; + origin[0] = (imageInfo->width > region[0]) ? (size_t)random_in_range( + 0, (int)(imageInfo->width - region[0] - 1), d) + : 0; // Go for it! retCode = test_fill_image_generic(context, queue, imageInfo, origin,