Skip to content

Commit 156b86f

Browse files
committed
style[gpu]: clang-format arrow binary kernel
Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
1 parent 09f24cd commit 156b86f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

vortex-cuda/kernels/src/arrow_binary.cu

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ __device__ void validate_offsets_device(const BinaryView *const views,
104104

105105
const uint32_t size = is_valid(validity, has_validity, idx) ? views[idx].size : 0;
106106
const int64_t expected = static_cast<int64_t>(offset) + static_cast<int64_t>(size);
107-
if (expected > static_cast<int64_t>(INT32_MAX) ||
108-
expected != static_cast<int64_t>(next_offset)) {
107+
if (expected > static_cast<int64_t>(INT32_MAX) || expected != static_cast<int64_t>(next_offset)) {
109108
atomicMax(status, 2u);
110109
}
111110
}
@@ -143,8 +142,7 @@ __device__ void gather_device(const BinaryView *const views,
143142
const uint64_t buffer_index = static_cast<uint64_t>(view_ref->buffer_index);
144143
const uint64_t offset = static_cast<uint64_t>(view_ref->offset);
145144
const uint64_t end = offset + static_cast<uint64_t>(size);
146-
if (buffer_index >= data_buffer_count || end < offset ||
147-
end > data_buffer_lens[buffer_index]) {
145+
if (buffer_index >= data_buffer_count || end < offset || end > data_buffer_lens[buffer_index]) {
148146
atomicMax(status, 1u);
149147
continue;
150148
}

0 commit comments

Comments
 (0)