Skip to content

Commit

Permalink
format with clang-format-11
Browse files Browse the repository at this point in the history
  • Loading branch information
rjodinchr committed Feb 13, 2024
1 parent 5c62489 commit b3cca5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
14 changes: 6 additions & 8 deletions test_conformance/images/clCopyImage/test_copy_1D_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
7 changes: 3 additions & 4 deletions test_conformance/images/clFillImage/test_fill_1D_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b3cca5c

Please sign in to comment.