Skip to content

Commit eaf39c2

Browse files
committed
Apply clang-format
1 parent 48cc21c commit eaf39c2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test_conformance/integer_ops/test_extended_bit_ops_insert.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ cpu_bit_insert(T tbase, T tinsert, cl_uint offset, cl_uint count)
3636
cl_ulong insert = static_cast<cl_ulong>(tinsert);
3737

3838
cl_ulong mask = 0;
39-
if(offset < 64 ) mask = (count < 64) ? ((1ULL << count) - 1) << offset : ~0ULL;
39+
if (offset < 64)
40+
mask = (count < 64) ? ((1ULL << count) - 1) << offset : ~0ULL;
4041
cl_ulong shifted = 0;
41-
if(offset < 64 ) shifted = (insert << offset);
42+
if (offset < 64) shifted = (insert << offset);
4243
cl_ulong result = (shifted & mask) | (base & ~mask);
4344

4445
return static_cast<typename std::make_unsigned<T>::type>(result);

0 commit comments

Comments
 (0)